Skip to content

Commit

Permalink
improve perf progpow and derived with cl_khr_fp16
Browse files Browse the repository at this point in the history
  • Loading branch information
luminousmining committed Mar 29, 2024
1 parent 1fadd86 commit a846e40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions miner/sources/resolver/amd/progpow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ bool resolver::ResolverAmdProgPOW::buildSearch()
case algo::progpow::VERSION::FIROPOW: kernelDerived.assign("firopow_functions.cl"); break;
case algo::progpow::VERSION::EVRPROGPOW: kernelDerived.assign("evrprogpow_functions.cl"); break;
}

////////////////////////////////////////////////////////////////////////////
kernelGenerator.appendLine("#pragma OPENCL EXTENSION cl_khr_fp16 : enable");

////////////////////////////////////////////////////////////////////////////
if ( false == kernelGenerator.appendFile("kernel/progpow/progpow_result.cl")
|| false == kernelGenerator.appendFile("kernel/progpow/" + kernelDerived)
|| false == kernelGenerator.appendFile(fileSequenceMathPeriod)
Expand Down

0 comments on commit a846e40

Please sign in to comment.