This repository was archived by the owner on Jan 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
This repository was archived by the owner on Jan 26, 2024. It is now read-only.
Failed to embed PCH #57
Copy link
Copy link
Open
Description
Trying to build HIP using a fresh install of Ubuntu 22.04
Following this guide: https://docs.amd.com/en-US/bundle/HIP-Programming-Guide-v5.0/page/Installing_HIP.html
rocm-5.4.x
pvelesko@cupcake:~/HIPAMD/hipamd$ cd "$HIPAMD_DIR"
mkdir -p build; cd build
cmake -DHIP_COMMON_DIR=$HIP_DIR -DAMD_OPENCL_PATH=$OPENCL_DIR -DROCCLR_PATH=$ROCCLR_DIR -DCMAKE_PREFIX_PATH="/opt/rocm/" -DCMAKE_INSTALL_PREFIX=$PWD/install ..
make -j$(nproc)
sudo make install
-- HIPCC_BIN_DIR found at
-- HIP_COMMON_DIR found at /home/pvelesko/HIPAMD/hip
-- Using CPACK_DEBIAN_PACKAGE_RELEASE local
-- CPACK_RPM_PACKAGE_RELEASE: local
-- HIP Platform: amd
-- HIP Runtime: rocclr
-- HIP Compiler: clang
-- ROCM Installation path(ROCM_PATH): /opt/rocm
-- HIP will be installed in: /home/pvelesko/HIPAMD/hipamd/build/install
-- Could NOT find NUMA (missing: NUMA_LIBRARIES NUMA_INCLUDE_DIR)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
'sh' '-c' '/home/pvelesko/HIPAMD/hipamd/src/hip_embed_pch.sh /home/pvelesko/HIPAMD/hip/include /home/pvelesko/HIPAMD/hipamd/build/include /home/pvelesko/HIPAMD/hipamd/include /opt/rocm/llvm/lib/cmake/llvm/../../..'
+ /opt/rocm/llvm/lib/cmake/llvm/../../../bin/clang -O3 --rocm-path=/home/pvelesko/HIPAMD/hipamd/build/include/.. -std=c++17 -nogpulib -isystem /home/pvelesko/HIPAMD/hipamd/build/include -isystem /home/pvelesko/HIPAMD/hip/include -isystem /home/pvelesko/HIPAMD/hipamd/include --cuda-device-only --cuda-gpu-arch=gfx1030 -x hip /tmp/hip_pch.146539/hip_pch.h -E
In file included from /tmp/hip_pch.146539/hip_pch.h:1:
/home/pvelesko/HIPAMD/hip/include/hip/hip_runtime.h:54:10: fatal error: 'thread' file not found
#include <thread>
^~~~~~~~
1 error generated when compiling for gfx1030.
CMake Error at src/CMakeLists.txt:186 (message):
Failed to embed PCH
Metadata
Metadata
Assignees
Labels
No labels