Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omega_h fails to link on Stampede3 #117

Open
CKegel opened this issue Nov 5, 2024 · 0 comments
Open

Omega_h fails to link on Stampede3 #117

CKegel opened this issue Nov 5, 2024 · 0 comments

Comments

@CKegel
Copy link

CKegel commented Nov 5, 2024

When buidling the delta wing test on Stampede3, the linker fails with the following output:

icpx: warning: ocloc tool could not be found and is required for AOT compilation. See: https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compilation/ahead-of-time-compilation.html for more information. [-Waot-tool-not-found]
llvm-foreach: No such file or directory
icpx: error: gen compiler command failed with exit code 1 (use -v to see invocation)

Kokkos sucessfully builds using the following script:

#!/bin/bash
 
git clone -b develop https://github.com/Kokkos/kokkos.git
 
module use /soft/modulefiles

#use explicit scaling
export EnableImplicitScaling=0
export ZE_AFFINITY_MASK=0.0
 
bdir=$PWD/buildKokkosSycl
 
cmake -S kokkos -B $bdir \
 -DCMAKE_BUILD_TYPE=Release\
 -DCMAKE_CXX_COMPILER=icpx\
 -DCMAKE_CXX_EXTENSIONS=OFF\
 -DCMAKE_CXX_STANDARD=17\
 -DKokkos_ENABLE_TESTS=OFF\
 -DKokkos_ENABLE_SERIAL=ON\
 -DKokkos_ENABLE_OPENMP=OFF\
 -DKokkos_ENABLE_SYCL=ON\
 -DKokkos_ARCH_INTEL_PVC=ON\
 -DBUILD_SHARED_LIBS=OFF\
 -DKokkos_ENABLE_DEBUG=OFF\
 -DKokkos_ENABLE_EXAMPLES=OFF\
 -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations -Wno-tautological-constant-compare"\
 -DCMAKE_EXE_LINKER_FLAGS="-fsycl-max-parallel-link-jobs=48 -Xsycl-target-backend '-device pvc -options -ze-intel-enable-auto-large-GRF-mode'" \
 -DCMAKE_VERBOSE_MAKEFILE=OFF\
 -DCMAKE_INSTALL_PREFIX=$bdir/install
 
cmake --build $bdir --target install -j32

The script used to build Omega_h is as follows:

#!/bin/bash

module load cmake intel

#use explicit scaling
export EnableImplicitScaling=0
export ZE_AFFINITY_MASK=0.0

#git clone https://github.com/CKegel/omega_h.git
#git clone -b const_compatibility https://github.com/CKegel/omega_h.git omega_h-const-compatibility

bdir=$PWD/buildOmegah

cmake -S omega_h -B $bdir \
-DCMAKE_INSTALL_PREFIX=$bdir/install \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=icpx \
-DCMAKE_EXE_LINKER_FLAGS="-fsycl-max-parallel-link-jobs=48 -Xsycl-target-backend '-device pvc -options -ze-intel-enable-auto-large-GRF-mode'" \
-DBUILD_SHARED_LIBS=OFF \
-DOmega_h_USE_CUDA=OFF \
-DOmega_h_USE_OpenMP=OFF \
-DOmega_h_USE_MPI=ON \
-DOmega_h_USE_Kokkos=ON \
-DKokkos_PREFIX=$PWD/buildKokkosSycl/install \
-DBUILD_TESTING=ON

cmake --build $bdir -j32 --target ugawg_hsc_oshmeshload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants