CHIP-SPV / chipStar

chipStar is a tool for compiling and running HIP/CUDA on SPIR-V via OpenCL or Level Zero APIs.
Other
227 stars 34 forks source link

Can't find declaration for hipLaunchKernel_spt #915

Closed joyongzhu closed 3 months ago

joyongzhu commented 3 months ago

I compile a test with "-fgpu-default-stream=per-thread",but a compilation error occurred:

streamperthread/hipStreamPerThrdCompilerOptn.cc:50:17: error: Can't find declaration for hipLaunchKernel_spt
__global__ void DefltStrmPT_Square(int64_t *C_d, int64_t N) {
                ^
1 error generated when compiling for host.

I found that the compiler would require the code to use hipLaunchKernel_spt, and this function declared in spirv_spt.h, should I manually include this header file into the source code of the test program? image

pvelesko commented 3 months ago

Manually including it for now should work, I'll work on fixing this issue in the meantime

pvelesko commented 3 months ago

@joyongzhu please test #916

don't forget to git submodule update after you checkout the branch

joyongzhu commented 3 months ago

it work ~ thanks ~ image