forked from sandialabs/omega_h
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
Description
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