Skip to content

Commit

Permalink
sundials: avoid a Fortran compiler requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 16, 2024
1 parent 2561af3 commit 566f78e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/sundials/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ def generate(self):
tc.variables["BUILD_SUNMATRIX_CUSPARSE"] = self.options.get_safe("with_cuda", False) and self.options.index_size == 32
tc.variables["BUILD_SUNLINSOL_CUSOLVERSP"] = self.options.get_safe("with_cuda", False) and self.options.index_size == 32

# Configure default LAPACK naming conventions for OpenBLAS.
# Needed to avoid a Fortran compiler requirement to detect the correct name mangling scheme.
# https://github.com/LLNL/sundials/blob/v7.1.1/cmake/SundialsSetupCompilers.cmake#L269-L360
tc.variables["SUNDIALS_LAPACK_CASE"] = "lower"
tc.variables["SUNDIALS_LAPACK_UNDERSCORES"] = "one"

tc.generate()

deps = CMakeDeps(self)
Expand Down

0 comments on commit 566f78e

Please sign in to comment.