From af65f415f04de0984d581f2cafabc994fc63b0ac Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Fri, 20 May 2016 10:15:33 +0530 Subject: [PATCH] Fix bit_extract sample Change-Id: I933f932bac26d9a9469d5d069973af166e11cbcd --- hipamd/samples/0_Intro/bit_extract/Makefile | 2 +- hipamd/samples/0_Intro/bit_extract/bit_extract.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hipamd/samples/0_Intro/bit_extract/Makefile b/hipamd/samples/0_Intro/bit_extract/Makefile index a01f60646e..0965ae7296 100644 --- a/hipamd/samples/0_Intro/bit_extract/Makefile +++ b/hipamd/samples/0_Intro/bit_extract/Makefile @@ -12,7 +12,7 @@ ifeq (${HIP_PLATFORM}, nvcc) HIPCC_FLAGS = -gencode=arch=compute_20,code=sm_20 endif ifeq (${HIP_PLATFORM}, hcc) - HIPCC_FLAGS = + HIPCC_FLAGS = -stdlib=libc++ endif diff --git a/hipamd/samples/0_Intro/bit_extract/bit_extract.cpp b/hipamd/samples/0_Intro/bit_extract/bit_extract.cpp index 53302b7228..746e1012bd 100644 --- a/hipamd/samples/0_Intro/bit_extract/bit_extract.cpp +++ b/hipamd/samples/0_Intro/bit_extract/bit_extract.cpp @@ -22,6 +22,9 @@ THE SOFTWARE. #include #include #include +#ifdef __HIP_PLATFORM_HCC__ +#include +#endif #define CHECK(cmd) \