f3da91de4e
Change-Id: I5a6915337b8664cfed9eaee9443c6e4406348574
779 B
779 B
HIP Bugs
Errors related to undefined reference to `hcLaunchKernel*__grid_launch_parm
Some common code practices may lead to hipcc generating a error with the form : undefined reference to `_hcLaunchKernel__ZN15vecAddNamespace6vecAddIidEEv16grid_launch_parmPT0_S3_S3_T
To workaround, try:
- Avoid calling hcLaunchKernel from a function with the host attribute host MyFunc(…) { hipLaunchKernel(myKernel, …)
- Avoid use of static with kernel definition: static global MyKernel
- Avoid defining kernels in anonymous namespace namespace { global MyKernel …
- Avoid calling member functions