module_api: workaround to use vcpy_kernel.cpp for NV path
Change-Id: Ib4868bf02c64070e846c19427c39289609909466
[ROCm/hip-tests commit: 6618c010b5]
This commit is contained in:
1 parent
3472b0b002
commit
2589f37ff6
4 files changed
+21
-21
No files matched your search
@@ -1,6 +1,12 @@
|
||||
#include<hip_runtime.h>
|
||||
|
||||
__global__ void hello_world(hipLaunchParm lp, float *a, float *b)
|
||||
#ifdef __HIP_PLATFORM_NVCC__
|
||||
#define EXTERN_C extern "C"
|
||||
#else
|
||||
#define EXTERN_C
|
||||
#endif
|
||||
|
||||
EXTERN_C __global__ void hello_world(hipLaunchParm lp, float *a, float *b)
|
||||
{
|
||||
int tx = hipThreadIdx_x;
|
||||
b[tx] = a[tx];
|
||||
|
||||
Reference in new issue
Block a user