From 5f6ae77a1e0baa185d1d086f30bcf4b1fcd4e876 Mon Sep 17 00:00:00 2001 From: jujiang Date: Mon, 26 Feb 2024 15:48:22 -0500 Subject: [PATCH] SWDEV-445730 - remove HCC in the document Change-Id: Ic848853e630d834c7320a67a29f232af6b8d66cb [ROCm/hip commit: 28f6712e1cc605cd641950d087f165008b5346cc] --- projects/hip/docs/user_guide/hip_porting_guide.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/projects/hip/docs/user_guide/hip_porting_guide.md b/projects/hip/docs/user_guide/hip_porting_guide.md index 46fd42f1d8..f5274c7cff 100644 --- a/projects/hip/docs/user_guide/hip_porting_guide.md +++ b/projects/hip/docs/user_guide/hip_porting_guide.md @@ -537,16 +537,9 @@ To see the detailed commands that hipcc issues, set the environment variable HIP export HIPCC_VERBOSE=1 make ... -hipcc-cmd: /opt/hcc/bin/hcc -hc -I/opt/hcc/include -stdlib=libc++ -I../../../../hc/include -I../../../../include/amd_detail/cuda -I../../../../include -x c++ -I../../common -O3 -c backprop_cuda.cu +hipcc-cmd: /opt/rocm/bin/hipcc --offload-arch=native -x hip backprop_cuda.cu ``` -### What Does This Error Mean? - -#### /usr/include/c++/v1/memory:5172:15: error: call to implicitly deleted default constructor of 'std::__1::bad_weak_ptr' throw bad_weak_ptr(); - -If you pass a ".cu" file, hcc will attempt to compile it as a CUDA language file. You must tell hcc that it's in fact a C++ file: use the "-x c++" option. - - ### Editor Highlighting See the utils/vim or utils/gedit directories to add handy highlighting to hip files.