Skip to content

Commit

Permalink
Fix vtk recipe multiple cxx flags; add no avx compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhan12 committed Nov 8, 2024
1 parent 6da0168 commit 075556a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
1 change: 1 addition & 0 deletions scripts/setupLC-TPL-uberenv.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ echo "Building all LC TPLs from $GEOS_BRANCH to be installed at $INSTALL_DIR..."

./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR ruby clang-14 "%[email protected] +docs" "salloc -N 1 -n 1 -t 150 -A vortex" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR ruby gcc-12 "%[email protected] +docs" "salloc -N 1 -n 1 -t 150 -A vortex" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR ruby gcc-12noAVX "%gcc@12noAVX +docs" "salloc -N 1 -n 1 -t 150 -A vortex" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR dane gcc-12 "%[email protected] +docs" "salloc -N 1 -n 1 -t 150 -A vortex" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen gcc-8-cuda-11 "%[email protected]+cuda~uncrustify cuda_arch=70 ^[email protected]+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen clang-13-cuda-11 "%[email protected]+cuda~uncrustify cuda_arch=70 ^[email protected]+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
Expand Down
25 changes: 24 additions & 1 deletion scripts/spack_configs/toss_4_x86_64_ib/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@

# geosx@develop%[email protected]
# geosx@develop%[email protected]
# geosx@develop%gcc@noAVX
#
# Uberenv command to build geos dependencies:
# python3 ./scripts/uberenv/uberenv.py --spec="%[email protected] +docs"
#
# python3 ./scripts/uberenv/uberenv.py --spec="%[email protected] +docs"
#
# No AVX instructions
# python3 ./scripts/uberenv/uberenv.py --spec="%gcc@12noAVX +docs"


spack:
config:
Expand Down Expand Up @@ -55,7 +60,23 @@ spack:
cxx: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/g++
f77: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gfortran
fc: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gfortran
flags: {}
operating_system: rhel8
target: x86_64
modules: []
environment:
set: # Needed for scotch
BISON: bison
FLEX: flex
extra_rpaths: []
- compiler:
spec: gcc@12noAVX
paths:
cc: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gcc
cxx: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/g++
f77: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gfortran
fc: /usr/tce/packages/gcc/gcc-12.1.1-magic/bin/gfortran
flags:
cxxflags: -march=x86-64-v2 -mno-avx512f
operating_system: rhel8
target: x86_64
modules: []
Expand Down Expand Up @@ -114,6 +135,8 @@ spack:
externals:
- spec: [email protected]%[email protected] process_managers=slurm
prefix: /usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-12.1.1-magic
- spec: [email protected]%gcc@12noAVX process_managers=slurm
prefix: /usr/tce/packages/mvapich2/mvapich2-2.3.7-gcc-12.1.1-magic
- spec: [email protected]%[email protected] process_managers=slurm
prefix: /usr/tce/packages/mvapich2/mvapich2-2.3.7-clang-14.0.6-magic

Expand Down
4 changes: 2 additions & 2 deletions scripts/spack_packages/packages/vtk/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def cmake_args(self):
mpi_args = [
self.define('CMAKE_C_COMPILER', spec['mpi'].mpicc),
self.define('CMAKE_CXX_COMPILER', spec['mpi'].mpicxx),
self.define('CMAKE_CXX_FLAGS', self.spec.compiler_flags["cxxflags"]),
self.define('CMAKE_CXX_FLAGS', " ".join(self.spec.compiler_flags["cxxflags"])),
'-DVTK_USE_MPI=ON',
'-DVTK_MODULE_ENABLE_VTK_IOParallelXML=YES',
'-DVTK_MODULE_ENABLE_VTK_FiltersParallelDIY2=YES'
Expand All @@ -71,7 +71,7 @@ def cmake_args(self):
mpi_args = [
self.define('CMAKE_C_COMPILER', self.compiler.cc),
self.define('CMAKE_CXX_COMPILER', self.compiler.cxx),
self.define('CMAKE_CXX_FLAGS', self.spec.compiler_flags["cxxflags"]),
self.define('CMAKE_CXX_FLAGS', " ".join(self.spec.compiler_flags["cxxflags"])),
'-DVTK_USE_MPI=OFF',
'-DVTK_MODULE_ENABLE_VTK_IOParallelXML=NO',
'-DVTK_MODULE_ENABLE_VTK_FiltersParallelDIY2=NO',
Expand Down

0 comments on commit 075556a

Please sign in to comment.