-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HIPIFY] nested macro is not hipified #7
Labels
bug
Something isn't working
Comments
Fixed. /gerritgit/compute/ec/hip (amd-develop branch):
|
cudaEvent_t *event = NULL; cudaEvent_t should be hipified to hipEvent_t as well. |
mangupta
referenced
this issue
in ROCm/HIP
Sep 4, 2016
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);
Fixed. |
This was referenced Apr 3, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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);
The text was updated successfully, but these errors were encountered: