Skip to content

Commit e471e0e

Browse files
committed
Change compiler flags.
1 parent 6d4915c commit e471e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyop2/compilation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class LinuxCompiler(Compiler):
394394
:kwarg comm: Optional communicator to compile the code on (only
395395
rank 0 compiles code) (defaults to COMM_WORLD)."""
396396
def __init__(self, cppargs=[], ldargs=[], cpp=False, comm=None):
397-
opt_flags = ['-O3', '-ffast-math', '-fopenmp']
397+
opt_flags = ['-march=native', '-O3', '-ffast-math']
398398
if configuration['debug']:
399399
opt_flags = ['-O0', '-g']
400400
cc = "mpicc"

0 commit comments

Comments
 (0)