Skip to content

Commit

Permalink
Testing syntax changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jooorgen committed Jun 27, 2023
1 parent 8fbc97f commit b2d6aa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions epochX/cudacpp/ee_mumu.mad/SubProcesses/GpuAbstraction.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
//--------------------------------------------------------------------------

#define gpuError_t hipError_t
#define gpuPeekAtLastError checkGpu( hipPeekAtLastError )
#define gpuGetErrorString checkGpu( hipGetErrorString )
#define gpuPeekAtLastError checkGpu( hipPeekAtLastError() )
#define gpuGetErrorString checkGpu( hipGetErrorString() )
#define gpuSuccess hipSuccess

#define gpuMallocHost(ptr, size) checkGpu( hipHostMalloc(ptr, size) ) // HostMalloc better
Expand All @@ -75,8 +75,8 @@
#define gpuFreeHost(ptr) checkGpu( hipHostFree(ptr) )

#define gpuSetDevice hipSetDevice
#define gpuDeviceSynchronize checkGpu( hipDeviceSynchronize )
#define gpuDeviceReset checkGpu(hipDeviceReset)
#define gpuDeviceSynchronize checkGpu( hipDeviceSynchronize() )
#define gpuDeviceReset checkGpu( hipDeviceReset() )

#define gpuLaunchKernel( kernel, blocks, threads, ...) kernel<<<blocks, threads>>> (__VA_ARGS__)
#define gpuLaunchKernelSharedMem(kernel, blocks, threads, sharedMem, ...) kernel<<<blocks, threads, sharedMem>>>(__VA_ARGS__)
Expand Down

0 comments on commit b2d6aa9

Please sign in to comment.