Giter Site home page Giter Site logo

anl-gt-gpu's People

Contributors

colleeneb avatar jyoung3131 avatar jz10 avatar kerilk avatar zjin-lcf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anl-gt-gpu's Issues

Build error on __builtin_astype(textureObject->sampler, sampler_t),

I am getting the following build error:

make
[ 1%] Building y1F.bc
[ 2%] Building mathlib.bc
/home/peng_20/hip/anl-gt-gpu/hipcl/lib/bitcode/mathlib.cl:767:5: error:
internal error: could not emit constant value "abstractly"
__builtin_astype(textureObject->sampler, sampler_t),
^
1 error generated.
make[2]: *** [lib/bitcode/CMakeFiles/kernellib_bc.dir/build.make:170: lib/bitcode/BC/mathlib.bc] Error 1
make[1]: *** [CMakeFiles/Makefile2:823: lib/bitcode/CMakeFiles/kernellib_bc.dir/all] Error 2

My cmake configuration is:

cmake -DCMAKE_CXX_COMPILER=/home/peng_20/hip/llvm/build_hipcl/bin/clang++ -DCMAKE_C_COMPILER=/home/peng_20/hip/llvm/build_hipcl/bin/clang -DLevel_0_INCLUDE_DIR=/home/peng/sycl_workspace/llvm/build_cuda11/include/sycl/level_zero -DLevel_0_LIBRARIES=/home/peng/sycl_workspace/llvm/build_cuda11/lib/libze_loader.so -DOpenCL_INCLUDE_DIR=/usr/include/CL -DOpenCL_LIBRARY=/home/peng/sycl_workspace/llvm/build_cuda11/lib/libOpenCL.so ..
-- The C compiler identification is Clang 8.0.1
-- The CXX compiler identification is Clang 8.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/peng_20/hip/llvm/build_hipcl/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/peng_20/hip/llvm/build_hipcl/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- HipCL will be installed to: /opt/hiplz
-- Using Clang: /home/peng_20/hip/llvm/build_hipcl/bin/clang++
-- Using llvm-link: /home/peng_20/hip/llvm/build_hipcl/bin/llvm-link
-- Using llvm-spirv: /home/peng_20/hip/llvm/build_hipcl/bin/llvm-spirv
-- Using llvm-config: /home/peng_20/hip/llvm/build_hipcl/bin/llvm-config
-- CMake build type not set, setting to RelWithDebInfo
-- CMake build type: RelWithDebInfo
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
-- Found OpenCL: /home/peng/sycl_workspace/llvm/build_cuda11/lib/libOpenCL.so (Required is at least version "2.0")
-- LLVM CMake directory: /home/peng_20/hip/llvm/build_hipcl/lib/cmake/llvm
-- hiplz private compile options: -Wno-unused-parameter
-- hiplz private include directories: $<INSTALL_INTERFACE:/opt/hiplz/include>;$<BUILD_INTERFACE:/home/peng_20/hip/anl-gt-gpu/hipcl/include>;/home/peng_20/hip/anl-gt-gpu/hipcl;/home/peng_20/hip/anl-gt-gpu/hipcl/include;/home/peng/sycl_workspace/llvm/build_cuda11/include/sycl/level_zero
-- hiplz public compile options: -x;hip;$<INSTALL_INTERFACE:--hip-device-lib-path=/opt/hiplz/share>;$<BUILD_INTERFACE:--hip-device-lib-path=/home/peng_20/hip/anl-gt-gpu/hipcl/build>;--hip-device-lib=kernellib.bc;$<INSTALL_INTERFACE:--hip-llvm-pass-path=/opt/hiplz/lib/llvm>;$<BUILD_INTERFACE:--hip-llvm-pass-path=/home/peng_20/hip/anl-gt-gpu/hipcl/build/llvm_passes>
-- hiplz public include directories: $&lt;INSTALL_INTERFACE:/opt/hiplz/include&gt;;$&lt;BUILD_INTERFACE:/home/peng_20/hip/anl-gt-gpu/hipcl/include>
-- HIPLZ_CXX_OPTIONS: -x hip $&lt;1:--hip-device-lib-path=/opt/hiplz/share&gt; $&lt;0:--hip-device-lib-path=/home/peng_20/hip/anl-gt-gpu/hipcl/build> --hip-device-lib=kernellib.bc $&lt;1:--hip-llvm-pass-path=/opt/hiplz/lib/llvm&gt; $&lt;0:--hip-llvm-pass-path=/home/peng_20/hip/anl-gt-gpu/hipcl/build/llvm_passes> $&lt;1:-I/opt/hiplz/include&gt; $&lt;0:/home/peng_20/hip/anl-gt-gpu/hipcl/include>
-- Configuring done
-- Generating done
-- Build files have been written to: /home/peng_20/hip/anl-gt-gpu/hipcl/build

Am I missing something in my settings?

Thanks,
Peng.

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.