Skip to content
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

Can't find declaration for hipLaunchKernel_spt #915

Closed
joyongzhu opened this issue Aug 22, 2024 · 3 comments
Closed

Can't find declaration for hipLaunchKernel_spt #915

joyongzhu opened this issue Aug 22, 2024 · 3 comments

Comments

@joyongzhu
Copy link

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
Copy link
Collaborator

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

@pvelesko
Copy link
Collaborator

@joyongzhu please test #916

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

@joyongzhu
Copy link
Author

it work ~~~ thanks ~~~
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants