You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following should compile (tested with ROCm 6.0.0) but is doesn't currently on chipStar:
#include<hip/hip_runtime.h>
__global__ voidfoo(float *x);
// chipStar: error: cannot initialize a variable of type 'void (*)(float *)' // with an lvalue of type 'void (float *)'voidbar1(float *x) {
void (*kernel)(float *x) = foo;
kernel<<<1, 1>>>(x);
}
voidbaz(void (*kernel)(float *), float *x) { kernel<<<1, 1>>>(x); }
// chipStar: // error: no matching function for call to 'baz'// ...// note: candidate function not viable: no known conversion from// 'void (float *)' to 'void (*)(float *)' for 1st argumentvoidbar2(float *x) { baz(foo, x); }
Until a fix is provided, the errors can be worked around:
Very likely in the LLVM. I doubt there is any chipStar declaration causing the error in the description.
I think this was related to me getting a bunch of compilation issues with HIP rebase.
The first HIP sample in the description was derived from a compilation error seen in the HIP rebase. It should compile (it compiles for AMD platform) but it doesn't currently.
The following should compile (tested with ROCm 6.0.0) but is doesn't currently on chipStar:
Until a fix is provided, the errors can be worked around:
The text was updated successfully, but these errors were encountered: