Skip to content

Commit

Permalink
gcom4: pickup the oneapi specific config file (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
manodeep authored Mar 6, 2025
1 parent c97ce7c commit b134dd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/gcom4/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def gcom_machine(self, spec):
"""
if spec.satisfies("%intel"):
mach_c = "ifort"
elif spec.satisfies("%oneapi"):
mach_c = "oneapi"
elif spec.satisfies("%gcc"):
mach_c = "gfortran"
else:
Expand All @@ -55,6 +57,8 @@ def patch(self):
filter_file(
r"build\.target\{ns\}.*", "#",
join_path("fcm-make", "gcom.cfg"))
# MS: The oneAPI config already uses the `-qopenmp` flag, so a
# substitution is not required for oneAPI.
if self.spec.satisfies("%intel"):
machine = self.gcom_machine(self.spec)
filter_file(
Expand Down

0 comments on commit b134dd4

Please sign in to comment.