anl-gt-gpu's People
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:
-- 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:
-- HIPLZ_CXX_OPTIONS: -x hip
-- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.