From a28da225a53e10b9cf90bd801ed8c2c2a3d111bb Mon Sep 17 00:00:00 2001 From: "Ramesh Errabolu (xN/A) TX" Date: Wed, 18 Mar 2015 17:18:00 -0500 Subject: [PATCH] ECR #333755 - Copy Hsa Sample to distribution folder - Non-Prm branch [git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1132097] [ROCm/ROCR-Runtime commit: 85acd1846634889d4d1517cf75644ab7429bd731] --- .../samples/BitionicSort/build/Makefile.BitionicSort | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/projects/rocr-runtime/samples/BitionicSort/build/Makefile.BitionicSort b/projects/rocr-runtime/samples/BitionicSort/build/Makefile.BitionicSort index 1b3d3516f0..5756a6c96f 100644 --- a/projects/rocr-runtime/samples/BitionicSort/build/Makefile.BitionicSort +++ b/projects/rocr-runtime/samples/BitionicSort/build/Makefile.BitionicSort @@ -99,6 +99,18 @@ else LLLIBS += $(OPENCL_DEPTH)/runtime/tools/$(RUNTIME_BUILD)/hsa-runtime-tools$(LIB_SUFFIX)$(LIB_EXT) endif +# +# Copy the Hsa ample to Hsa distribution folder +# +ifdef ATI_OS_LINUX + LOCAL_TARGETS = inst_sample_copy +endif +inst_sample_copy: + $(MKDIR) $(DIST_BIN_DEST)/../../samples/$(OS_TYPE) + -$(RM) $(DIST_BIN_DEST)/../../samples/$(OS_TYPE)/bitonic_sort_kernel.hsail + $(CP) $(BUILD_DIR)/$(EXE_TARGET) $(DIST_BIN_DEST)/../../samples/$(OS_TYPE) + $(CP) $(COMPONENT_DEPTH)/bitonic_sort_kernel.hsail $(DIST_BIN_DEST)/../../samples/$(OS_TYPE) + include $(OPENCL_DEPTH)/hsarules