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

what versions of kokkos and cuda does omegah 10.8 require? #66

Closed
cwsmith opened this issue Oct 23, 2023 · 0 comments
Closed

what versions of kokkos and cuda does omegah 10.8 require? #66

cwsmith opened this issue Oct 23, 2023 · 0 comments

Comments

@cwsmith
Copy link

cwsmith commented Oct 23, 2023

Build/test results of Omega_h (cws/cuda112 - based on 10.8.1, allows testing with cuda 11.2) with Kokkos 3.7.#, 4.0.#, and 4.1.00 on a i5-13600KF with NVIDIA GeForce RTX 3060, using the build scripts listed below, are:

gcc, cuda, result
10.4.0, 11.1.1, kokkos 4.1.0 fails to compile, kokkos 3.7.* and 4.0.* not tested
10.4.0, 11.2.1, omegah tests run_aniso_test and rc_field_test fail with cuda asserts, kokkos 3.7.* and 4.0.* not tested
10.4.0, 11.3.1, omegah tests run_aniso_test and rc_field_test fail with cuda asserts, kokkos 3.7.* and 4.0.* not tested
10.4.0, 11.4.4, all omegah tests pass
10.4.0, 11.5.2, all omegah tests pass
10.4.0, 11.6.2, all omegah tests pass
10.4.0, 11.7.1, all omegah tests pass
10.4.0, 11.8.0, all omegah tests pass
12.3.0, 12.1.1, all omegah tests pass

This page lists the compatible GCC - CUDA combinations: https://gist.github.com/ax3l/9489132#nvcc

build scripts

kokkos

suffix=$2
d=buildKokkos${suffix}
cmake -S kokkos -B $d \
  -DCMAKE_CXX_COMPILER=g++ \
  -DKokkos_ARCH_AMPERE86=ON \
  -DKokkos_ENABLE_CUDA=on \
  -DKokkos_ENABLE_CUDA_LAMBDA=on \
  -DBUILD_SHARED_LIBS=ON \
  -DKokkos_ENABLE_SERIAL=ON \
  -DKokkos_ENABLE_DEBUG=on \
  -DKokkos_ENABLE_TESTS=off \
  -DCMAKE_INSTALL_PREFIX=$d/install
cmake --build $d -j 24 --target install

omegah

suffix=$1
d=buildOmegahKokkos$suffix
cmake -S omega_h -B $d \
  -DCMAKE_INSTALL_PREFIX=$d/install \
  -DCMAKE_BUILD_TYPE=Debug \
  -DBUILD_TESTING=on  \
  -DOmega_h_USE_MPI=off  \
  -DOmega_h_USE_Kokkos=on \
  -DOmega_h_CUDA_ARCH="86" \
  -DCMAKE_CUDA_ARCHITECTURES="86" \
  -DKokkos_PREFIX=buildKokkosCUDA$suffix/install \
  -DBUILD_SHARED_LIBS=on

cmake --build $d --target install -j8
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

1 participant