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

Kernel name not identifiable #240

Closed
psn9 opened this issue Oct 30, 2017 · 3 comments
Closed

Kernel name not identifiable #240

psn9 opened this issue Oct 30, 2017 · 3 comments
Assignees

Comments

@psn9
Copy link

psn9 commented Oct 30, 2017

Hi ,

I am trying to run a HIP compiled binary but ending up with
HSADevice::CreateKernel(): Unable to create kernel error.

In the error log , I can find the kernel name to be "unnamed" . I cant post the entire error log here.
Here's a sample,

CreateKernel_demangled= void MS::CUD::Sort_of<2>::Dial(unsigned long, unsigned long, unsigned long, bool, float const*, float const*, float*, float const*, float, float const*, float const*, float const*, float const*, ihipStream_t*)::HIP_kernel_functor_name_begin_unnamed_HIP_kernel_functor_name_end_12::__cxxamp_trampoline(int, int, int, float const*, float const*, float*, float const*, float, float const*, float const*, float const*, float const*)

When I tried HIP_TRACE_API , I can see the kernel being launched , but then this error is being thrown.

A snippet of HIP_TRACE_API :

hip-api tid:1.53 hipMemset ret= 0 (hipSuccess)>>
<<hip-api tid:1.53 1.53 hipLaunchKernel '(kSortBack<BlockDimX, BlockDimY, false, U>)' gridDim:{1,1,1} groupDim:{16,8,1} sharedMem:+0 stream:0.0

kSortBack is the kernel

As u can see in the error log , the kernel name is "unnamed" - HIP_kernel_functor_name_begin_unnamedHIP_kernel_functor_name_end

Any general cause for this ? Am using the latest environment.

@psn9
Copy link
Author

psn9 commented Oct 31, 2017

It seems the "unnamed" thing is normal in HIP. Even successful gpu programs had kernel name "unnamed" . But Can I get a solution for the CreateKernel() issue ?

What could possibly be the cause ?

@whchung
Copy link
Contributor

whchung commented Nov 6, 2017

@psn9 could you show the exact steps how you compile/link the program. one common error is that you didn't use hipcc or hcc as the linker.

@mangupta
Copy link
Contributor

mangupta commented Dec 7, 2017

PR #246 addresses the unnamed kernel issue in addition to other changes. So closing this issue.

@mangupta mangupta closed this as completed Dec 7, 2017
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

No branches or pull requests

3 participants