Skip to content

Commit

Permalink
Modify fc_type logic for oneapi to do substring matching
Browse files Browse the repository at this point in the history
This renables builds of CAM with the intel-oneapi compilers
  • Loading branch information
gdicker1 committed Mar 8, 2024
1 parent 74018ee commit 3e52efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bld/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ elsif ($fc =~ /nvfor/) { $fc_type = 'nvhpc'; }

# User override for Fortran compiler type
if (defined $opts{'fc_type'}) { $fc_type = $opts{'fc_type'}; }
if ($fc_type eq "oneapi") {$fc_type = 'intel'; }
if (index($fc_type,"oneapi") != -1) {$fc_type = 'intel'; }
if ($fc_type) {
$cfg_ref->set('fc_type', $fc_type);
if ($print>=2) { print "Fortran compiler type: $fc_type$eol"; }
Expand Down

0 comments on commit 3e52efe

Please sign in to comment.