From 512ff8ec8e66269a538f034f20070f9ef6233064 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Fri, 2 Sep 2016 12:47:25 -0500 Subject: [PATCH] Fix double-lock of stream on hipModuleLaunchKernel Change-Id: I4ca164971c25f4eb8fbcca11d6258367bb3d2ab4 --- samples/0_Intro/module_api/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/0_Intro/module_api/Makefile b/samples/0_Intro/module_api/Makefile index db270beaa0..8981938e91 100644 --- a/samples/0_Intro/module_api/Makefile +++ b/samples/0_Intro/module_api/Makefile @@ -3,11 +3,14 @@ ifeq (,$(HIP_PATH)) HIP_PATH=../../.. endif HIPCC=$(HIP_PATH)/bin/hipcc +OPT= HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --compiler) ifeq (${HIP_PLATFORM}, hcc) GENCODEOBJECT_FLAGS=--target-isa=fiji +all: runKernel.hip.out + vcpy_isa.compile: vcpy_isa.cpp $(HIPCC) --genco $(GENCODEOBJECT_FLAGS) vcpy_isa.cpp -o vcpy_isa.co @@ -29,5 +32,5 @@ endif all: vcpy_isa.compile runKernel.hip.out runKernel.hip.out: runKernel.cpp - $(HIPCC) runKernel.cpp -o runKernel.hip.out + $(HIPCC) $(OPT) runKernel.cpp -o runKernel.hip.out