Skip to content

Commit

Permalink
add volatile keyword to mix
Browse files Browse the repository at this point in the history
  • Loading branch information
hackmod committed Jan 19, 2019
1 parent c0e1aef commit 2afe772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libprogpow/ProgPow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ std::string ProgPow::getKern(uint64_t prog_seed, kernel_t kern)
ret << "\n";
ret << "// Inner loop for prog_seed " << prog_seed << "\n";
ret << "void progPowLoop(const uint32_t loop,\n";
ret << " uint32_t mix[PROGPOW_REGS],\n";
ret << " volatile uint32_t mix[PROGPOW_REGS],\n";
ret << " __global const dag_t *g_dag,\n";
ret << " __local const uint32_t c_dag[PROGPOW_CACHE_WORDS],\n";
ret << " __local uint64_t share[GROUP_SHARE],\n";
Expand Down

0 comments on commit 2afe772

Please sign in to comment.