| Issue |
180983
|
| Summary |
how to compile the clang++ for openmp offload to GPUs?
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
ytzhang1
|
Here's the command I got so far,
`
cd llvm-project-21.1.8.src
mkdir build
cd build
cmake ../llvm -G "Unix Makefiles" \
-C ../offload/cmake/caches/Offload.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=<install-path>
make
make install
`
But I'm facing some compilation errors,
`llvm-project-21.1.8.src/libcxxabi/src/cxa_guard_impl.h:57:
/usr/include/unistd.h:27:1: error: unknown type name '__BEGIN_DECLS'
27 | __BEGIN_DECLS`
Any idea how to fix the problem ?
I'm also wondering if the compiler can support openmp offloading to all GPUs from NVIDIA, AMD, and Intel?
Thanks,
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs