Skip to content

Commit

Permalink
Merge pull request #3018 from sandsentinel/gpu-minor-improvements
Browse files Browse the repository at this point in the history
Make the GPU code compile on Windows
  • Loading branch information
nazar-pc authored Sep 13, 2024
2 parents 83e13b5 + 27ef9d5 commit 492362a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/subspace-proof-of-space-gpu/src/subspace_api.cu
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void create_tables(gpu_specific_state& gpu_state, const chacha_state& state,
CUDA_OK(cudaGetLastError());

// Sorts the first table.
gpu.launch_coop(sort15113, {gpu.sm_count(), SORT_BLOCKDIM, shared_sz},
gpu.launch_coop(sort15113, launch_params_t{gpu.sm_count(), SORT_BLOCKDIM, shared_sz},
&gpu_state.tables[0].ys[0],
(const uint32_t*)gpu_state.tables[0].y,
table_size, &gpu_state.temp_sort[0],
Expand Down Expand Up @@ -86,7 +86,7 @@ void create_tables(gpu_specific_state& gpu_state, const chacha_state& state,
CUDA_OK(cudaGetLastError());

// Sorts the current table.
gpu.launch_coop(sort15113, {gpu.sm_count(), SORT_BLOCKDIM, shared_sz},
gpu.launch_coop(sort15113, launch_params_t{gpu.sm_count(), SORT_BLOCKDIM, shared_sz},
&gpu_state.tables[i].ys[0], (const uint32_t*)gpu_state.tables[i].y,
(const uint32_t*)&d_match_counter[0],
&gpu_state.temp_sort[0], &gpu_state.histogram[0],
Expand Down

0 comments on commit 492362a

Please sign in to comment.