Skip to content

Commit 1ad06d0

Browse files
awvwgkCopilot
andcommitted
Select the locked Fortran compiler for native modules
Avoid the system f95 compiler when HDF5 modules come from the Pixi environment. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d613b67 commit 1ad06d0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎pixi.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ platforms = ["linux-64", "linux-64-cuda12"]
189189
fortran-compiler = "*"
190190
openssl = ">=3"
191191

192+
[feature.fortran.activation.env]
193+
FC = "$CONDA_PREFIX/bin/gfortran"
194+
192195
[feature.hdf5-serial]
193196
platforms = ["linux-64", "linux-64-cuda12"]
194197

‎website/skalaxc/fortran-api.rst‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Use the installed module and its CMake target:
1313
1414
The module is compiler-specific: build the library and consumer with
1515
compatible Fortran compilers. No GauXC or LibTorch include paths are needed.
16+
The locked Fortran environments set ``FC`` to their own compiler so HDF5
17+
modules are not accidentally consumed by an incompatible system compiler.
1618
``SKALAXC_BUILD_FORTRAN=OFF`` omits the module and its CMake component.
1719

1820
Ownership and error handling

0 commit comments

Comments
 (0)