GithubHelp home page GithubHelp logo

Comments (3)

cjatin avatar cjatin commented on June 28, 2024

can you try unsetting HIP_PATH when you build CLR from source and set it again after its done building?

So basically.

unset HIP_PATH
cmake ...
ninja install
export HIP_PATH=install path

from clr.

JiaJiDuan avatar JiaJiDuan commented on June 28, 2024

unset HIP_PATH
cmake ...
ninja install
export HIP_PATH=install path

@cjatin Great! This is the perfect solution to my problem. Thank you very much for your reply.
I will close this issue.

from clr.

thesleort avatar thesleort commented on June 28, 2024

Following this guide exactly, I get the exact same error? I have tried with both rocm-5.6.0, rocm-5.6.x, rocm-5.7.0, and rocm-5.7.1.

This is Ubuntu 22.04 LTS with rocm-hip-libraries installed.

I am not able to unset the "HIP_PATH" as I don't have it?

$ cmake .. -DCLR_BUILD_HIP=ON -DHIP_COMMON_DIR=/home/troels/Workspace/qtec-rocm/rocm-gfx902/hip -DHIPCC_BIN_DIR=/home/troels/Workspace/qtec-rocm/rocm-gfx902/HIPCC/build
-- HIPCC Binary Directory: /home/troels/Workspace/qtec-rocm/rocm-gfx902/HIPCC/build
-- HIP Common Directory: /home/troels/Workspace/qtec-rocm/rocm-gfx902/hip
-- HIPCC_BIN_DIR found at /home/troels/Workspace/qtec-rocm/rocm-gfx902/HIPCC/build
-- HIP_COMMON_DIR found at /home/troels/Workspace/qtec-rocm/rocm-gfx902/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/troels/Workspace/qtec-rocm/rocm-gfx902/clr/build/install
'sh' '-c' '/home/troels/Workspace/qtec-rocm/rocm-gfx902/clr/hipamd/src/hip_embed_pch.sh /home/troels/Workspace/qtec-rocm/rocm-gfx902/hip/include /home/troels/Workspace/qtec-rocm/rocm-gfx902/clr/build/hipamd/include /home/troels/Workspace/qtec-rocm/rocm-gfx902/clr/hipamd/include /usr/lib/llvm-14/cmake/../../..'
+ /usr/lib/llvm-14/cmake/../../../bin/clang -O3 --rocm-path=/home/troels/Workspace/qtec-rocm/rocm-gfx902/clr/build/hipamd/include/.. -std=c++17 -nogpulib -isystem /home/troels/Workspace/qtec-rocm/rocm-gfx902/clr/build/hipamd/include -isystem /home/troels/Workspace/qtec-rocm/rocm-gfx902/hip/include -isystem /home/troels/Workspace/qtec-rocm/rocm-gfx902/clr/hipamd/include --cuda-device-only --cuda-gpu-arch=gfx1030 -x hip /tmp/hip_pch.2813737/hip_pch.h -E
In file included from /tmp/hip_pch.2813737/hip_pch.h:1:
/home/troels/Workspace/qtec-rocm/rocm-gfx902/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 hipamd/src/CMakeLists.txt:182 (message):
  Failed to embed PCH


-- Configuring incomplete, errors occurred!

CMakeOutput.log

from clr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.