Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void progPowLoop(
// global load to sequential locations
uint32_t data_g[PROGPOW_DAG_LOADS];
for (int i = 0; i < PROGPOW_DAG_LOADS; i++)
data_g[i] = dag[(offset_g*PROGPOW_LANES + l)*PROGPOW_DAG_LOADS + i];
data_g[i] = dag[(offset_g*PROGPOW_LANES + (l + loop) % 16)*PROGPOW_DAG_LOADS + i];

// initialize the seed and mix destination sequence
int mix_seq_dst[PROGPOW_REGS];
Expand Down
2 changes: 1 addition & 1 deletion libprogpow/ProgPow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ std::string ProgPow::getKern(uint64_t block_number, kernel_t kern)
ret << "offset = share[group_id];\n";
}
ret << "offset %= PROGPOW_DAG_ELEMENTS;\n";
ret << "offset = offset * PROGPOW_LANES + lane_id;\n";
ret << "offset = offset * PROGPOW_LANES + (lane_id + loop) % 16;\n";
ret << "data_dag = g_dag[offset];\n";
ret << "// hack to prevent compiler from reordering LD and usage\n";
if (kern == KERNEL_CUDA)
Expand Down