ascent: fix oneapi build (#32239)

This commit is contained in:
Robert Cohn 2022-08-18 10:15:39 -07:00 committed by GitHub
parent cfa4bffe26
commit 1cdc50e3f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -100,6 +100,7 @@ spack:
- amrex
- arborx
- argobots
- ascent ^vtk-m ~openmp
- axom
- bolt
- bricks
@ -193,7 +194,6 @@ spack:
# CPU BUILD FAILURES
#- adios2@2.8.0 # adios2
#- archer@2.0.0 # binutils
#- ascent ^vtk-m ~openmp # ascent
#- charliecloud@0.26 # charliecloud
#- dyninst@12.1.0 # intel-tbb
#- exaworks@0.1.0 # rust, flux-sched

View File

@ -225,6 +225,8 @@ def cmake_args(self):
host_config = self._get_host_config_path(self.spec)
options = []
options.extend(["-C", host_config, "../spack-src/src/"])
if self.spec.satisfies("%oneapi"):
options.extend(["-D", "CMAKE_Fortran_FLAGS=-nofor-main"])
return options
@run_after("install")