emankovself-assigned thisNov 1, 2019 emankovadded theclangclang compiler issuelabelNov 1, 2019 hjjvandammentioned this issueDec 5, 2019 yiakwy-xpu-ml-framework-teamreopened thisSep 6, 2024
I'm still new to rocm, but I feel like there is something wrong with the default configuration of either thellvm-amdgpuor thehip-rocclrpackage (clangorhipcccompiler), because from all my google searches indicate that/opt/rocmshould be the default location and should also we overwritable byR...
Thus HIP source code can be compiled to run on either platform. Platform-specific features can be isolated to a specific platform using conditional compilation. Thus HIP provides source portability to either platform. HIP provides the _hipcc_ compiler driver which will call the appropriate toolchain ...
__HIP_DEVICE_COMPILE__ is set to a nonzero value when the compiler (HIP-Clang or nvcc) is compiling code for a device inside a __global__ kernel or for a device function. __HIP_DEVICE_COMPILE__ can replace #ifdef checks on the __CUDA_ARCH__ define. // #ifdef __CUDA_ARCH__ ...
-DLLVM_ENABLE_PROJECTS="llvm;clang;lld;compiler-rt" \ -DLLVM_ENABLE_RTTI=ON \ -DCMAKE_BUILD_TYPE=${BUILD_MODE} \ -DLLVM_USE_LINKER=gold make -j ${BUILD_JOBS}; make install popd > /dev/null prog_log_info "===LLVM installation finished===" } # Build HIPCC build_hipcc() {...
clang -fgpu-rdc --hip-link --cuda-device-only --offload-arch=gfx1030 user_code.bc hiprt02000_amd_lib_win.bc -o offline_linked_user_code.hipfb If we have filter functions or intersection functions in our code, we have to write the custom function table manually (custom_function_table...
With ROCm 4.1 it stopped honoring the HIP_PLATFORM=hcc option with the Heterogeneous Compute Compiler (HCC) compiler having been deprecated for a while in favor of the HIP Clang compiler. ROCm 4.1 stopped honoring the "hcc" HIP_PLATFORM but now requires "HIP_PLATFORM=amd". Similarly, ROCm 4....
DCMAKE_C_COMPILER=/usr/lib/rocm/llvm/bin/clang -DCMAKE_CXX_COMPILER=/usr/lib/rocm/llvm/bin/clang++ -DAMDGPU_TARGETS='\''gfx900;gfx906:xnack-;gfx908:xnack-;gfx90a:xnack+;gfx90a:xnack-;gfx940;gfx941;gfx942;gfx1010;gfx1012;gfx1030;gfx1100;gfx1101;gfx1102'\'' -DGPU_TARGETS='...
The granularity is one day, sohcc_workweekcan only be used to distinguish compiler builds that are at least one day apart. #ifdef __hcc_workweek_ > 16014 // use cool new HCC feature here #endif Additionally, hcc binary can print the work-week to stdout: ("16014" in the version info...
Functions defined in a standard compiler that are called from HIP-Clang. Applications with these interfaces should use the default libstdc++ linking. Applications which are compiled entirely with hipcc, and which benefit from advanced C++ features not supported in libstdc++, and which do not require...