Giter Site home page Giter Site logo

Comments (5)

zjin-lcf avatar zjin-lcf commented on July 29, 2024

It seems that 'hipCub' needs to installed first

from rocthrust.

stanleytsang-amd avatar stanleytsang-amd commented on July 29, 2024

Hi @sampie Sorry for the extreme delay in response. If you are using clang directly, then you will need to pass -xhip to the compiler to specify that we are treating source files as HIP language files. And also make sure that you do have rocprim installed in /opt/rocm as well.

from rocthrust.

sampie avatar sampie commented on July 29, 2024

It did upgrade Ubuntu to 22.04 and rocm to 5.3 and added -xhip parameter (rockprim is also installed), but did not manage to compile the file:

$ clang++ -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm-5.3.0/include -I/opt/rocm-5.3.0/llvm/bin/../lib/clang/15.0.0 -I/opt/rocm-5.3.0/hsa/include -xhip -fPIE -c -std=c++20 -g -O0 Score.cpp
lld: error: undefined symbol: __oclc_ABI_version

referenced by /tmp/Score-fec864/Score-gfx803.o:(__ockl_hostcall_preview)
referenced by /tmp/Score-fec864/Score-gfx803.o:(__ockl_hostcall_preview)
clang: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)

from rocthrust.

stanleytsang-amd avatar stanleytsang-amd commented on July 29, 2024

I haven't encountered that error before. The only reference I can find online to that is https://docs.olcf.ornl.gov/systems/crusher_quick_start_guide.html#olcfdev-1118-link-errors-with-rocm-5-2-0-and-cce. As per that webpage, can you try using amdclang++ instead, located in /opt/rocm-5.3.0/bin?

from rocthrust.

doctorcolinsmith avatar doctorcolinsmith commented on July 29, 2024

Closing out as there is no reply from the user

from rocthrust.

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.