Skip to content

Commit

Permalink
Fixes small error in GPU macro definition.
Browse files Browse the repository at this point in the history
cudaDeviceProp does not end with "_t" like hipDeviceProp_t.
  • Loading branch information
dipietrantonio committed Dec 16, 2024
1 parent 94df0b3 commit 7671066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inline void __gpu_check_error(gpuError_t x, const char *file, int line){
#define gpuMemGetInfo(...) GPU_CHECK_ERROR(cudaMemGetInfo(__VA_ARGS__))
#define gpuMallocHost(...) GPU_CHECK_ERROR(cudaMallocHost(__VA_ARGS__))
#define gpuGetDeviceProperties(...) cudaGetDeviceProperties(__VA_ARGS__)
#define gpuDeviceProp_t cudaDeviceProp_t
#define gpuDeviceProp_t cudaDeviceProp
#define gpuPeekAtLastError cudaPeekAtLastError

// Complex number operations:
Expand Down

0 comments on commit 7671066

Please sign in to comment.