diff --git a/samples/0_Intro/module_api/Makefile b/samples/0_Intro/module_api/Makefile index 38bd00a6a6..270d4c1211 100644 --- a/samples/0_Intro/module_api/Makefile +++ b/samples/0_Intro/module_api/Makefile @@ -5,7 +5,7 @@ endif HIPCC=$(HIP_PATH)/bin/hipcc HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler) -all: vcpy_kernel.code runKernel.hip.out defaultDriver.hip.out +all: vcpy_kernel.code runKernel.hip.out launchKernelHcc.hip.out runKernel.hip.out: runKernel.cpp $(HIPCC) $(HIPCC_FLAGS) $< -o $@ @@ -13,8 +13,8 @@ runKernel.hip.out: runKernel.cpp launchKernelHcc.hip.out: launchKernelHcc.cpp $(HIPCC) $(HIPCC_FLAGS) $< -o $@ -defaultDriver.hip.out: defaultDriver.cpp - $(HIPCC) $(HIPCC_FLAGS) $< -o $@ +#defaultDriver.hip.out: defaultDriver.cpp +# $(HIPCC) $(HIPCC_FLAGS) $< -o $@ vcpy_kernel.code: vcpy_kernel.cpp $(HIPCC) --genco $(GENCO_FLAGS) $^ -o $@ diff --git a/samples/0_Intro/module_api/launchKernelHcc.cpp b/samples/0_Intro/module_api/launchKernelHcc.cpp index e86e44cb24..7c90198b6a 100644 --- a/samples/0_Intro/module_api/launchKernelHcc.cpp +++ b/samples/0_Intro/module_api/launchKernelHcc.cpp @@ -72,6 +72,7 @@ int main(){ uint32_t one = 1; struct { + uint32_t _hidden[6]; void * _Ad; void * _Bd; } args; diff --git a/samples/0_Intro/module_api/runKernel.cpp b/samples/0_Intro/module_api/runKernel.cpp index 2759c02140..fb34f80b7b 100644 --- a/samples/0_Intro/module_api/runKernel.cpp +++ b/samples/0_Intro/module_api/runKernel.cpp @@ -68,6 +68,7 @@ int main(){ uint32_t one = 1; struct { + uint32_t _hidden[6]; void * _Ad; void * _Bd; } args; diff --git a/samples/0_Intro/module_api/test.cl b/samples/0_Intro/module_api/test.cl deleted file mode 100644 index 81b20cab0e..0000000000 --- a/samples/0_Intro/module_api/test.cl +++ /dev/null @@ -1,12 +0,0 @@ -__kernel void memset(char in, __global int* out) { -int tx = get_global_id(0); -out[tx] = in; -} - - -__kernel void vadd(__global float *Ad, __global float *Bd, __global float *Cd, int N){ -int tx = get_global_id(0); -if(tx < N){ -Cd[tx] = Ad[tx] + Bd[tx]; -} -} diff --git a/samples/0_Intro/module_api/test.co b/samples/0_Intro/module_api/test.co deleted file mode 100755 index a3e6b991e3..0000000000 Binary files a/samples/0_Intro/module_api/test.co and /dev/null differ