BUG: Fix build args and add missing tools
@@ -14,14 +14,21 @@ build:
run_exports:
- {{ pin_compatible('kokkos') }}
script_env:
- - Kokkos_OPT_ARGS=-Kokkos_ARCH_SKX=ON -Kokkos_ARCH_AMDAVX=ON Kokkos_ARCH_ZEN=ON -Kokkos_ARCH_ZEN2=ON -Kokkos_ARCH_ZEN3=ON # [x86_64]
- - Kokkos_OPT_ARGS=-Kokkos_ARCH_POWER7=ON -Kokkos_ARCH_POWER8=ON -Kokkos_ARCH_POWER9=ON # [ppc64le]
- - Kokkos_OPT_ARGS=-Kokkos_ARCH_ARMV80=ON -Kokkos_ARCH_ARMV81=ON # [aarch64]
- - Kokkos_CUDA_ARGS=-DKokkos_ENABLE_CUDA=OFF
+ # TODO: Search acronyms on https://en.wikichip.org/ to enable optimizations
+ # for each platform for desktop chips released since 2012 (10 years)
+ # Build options here: https://github.com/kokkos/kokkos/blob/master/BUILD.md
+ - Kokkos_OPT_ARGS=-DKokkos_ARCH_AMDAVX=ON -DKokkos_ARCH_BDW=ON -DKokkos_ARCH_HSW=ON -DKokkos_ARCH_SNB=ON -DKokkos_ARCH_ZEN=ON -DKokkos_ARCH_ZEN2=ON -DKokkos_ARCH_ZEN3=ON # [x86_64]
+ - Kokkos_OPT_ARGS=-DKokkos_ARCH_POWER8=ON -DKokkos_ARCH_POWER9=ON # [ppc64le]
+ - Kokkos_OPT_ARGS=-DKokkos_ARCH_ARMV80=ON -DKokkos_ARCH_ARMV81=ON # [aarch64]
+ # Target compute capability 3.5 for minimum arch supported by CUDA SDK 11
+ # Kokkos v3.5.00 only lets us optimize for one CUDA arch at a time
+ # - Kokkos_CUDA_ARGS=-DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_KEPLER35=ON -DKokkos_CUDA_DIR:PATH=/usr/local/cuda
+ # - CUDA_ROOT=/usr/local/cuda
requirements:
build:
- - ninja
- {{ compiler('cxx') }}
+ - cmake >=3.21.1
+ - ninja
host:
- llvm-openmp # [osx]
- libgomp # [linux]
