aba73d667370081f8ea30b380ac25ebffb164471
Fixes bug “HIPIFY: nested macro is not hipified” https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/issues/33 Example: #include "cuda_runtime.h" #define MY_MACRO(func, flags) (func, flags) ... cudaEvent_t *event = NULL; MY_MACRO(cudaEventCreateWithFlags(event, cudaEventDisableTiming), NULL); where cudaEventDisableTiming is a defined numeric literal and thus a nested MACRO: #define cudaEventDisableTiming 0x02 /**< Event will not record timing data */ After hipifying now: MY_MACRO(hipEventCreateWithFlags(event, cudaEventDisableTiming), NULL); Should be: MY_MACRO(hipEventCreateWithFlags(event, hipEventDisableTiming), NULL);
Beskrivning
No description provided
Languages
C++
67.5%
C
20.6%
Python
6.6%
CMake
3.4%
Shell
0.6%
Övrigt
1.1%