Skip to content

Commit a950552

Browse files
committed
Adjust test to include -g flag
1 parent ac69761 commit a950552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/framework/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5435,7 +5435,7 @@ def test_dump_env_script(self):
54355435
"module load hwloc/1.11.8-GCC-4.6.4", # loading of dependency module
54365436
# defining build env
54375437
"export FC='gfortran'",
5438-
"export CFLAGS='-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno'",
5438+
"export CFLAGS='-O2 -ftree-vectorize -m(arch|cpu)=native -fno-math-errno -g'",
54395439
]
54405440
for pattern in patterns:
54415441
regex = re.compile("^%s$" % pattern, re.M)

test/framework/toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,7 @@ def test_fosscuda(self):
12781278
tc.prepare()
12791279

12801280
archflags = tc.COMPILER_OPTIMAL_ARCHITECTURE_OPTION[(tc.arch, tc.cpu_family)]
1281-
optflags = "-O2 -ftree-vectorize -%s -fno-math-errno -fopenmp" % archflags
1281+
optflags = "-O2 -ftree-vectorize -%s -fno-math-errno -g -fopenmp" % archflags
12821282
nvcc_flags = r' '.join([
12831283
r'-Xcompiler="%s"' % optflags,
12841284
# the use of -lcudart in -Xlinker is a bit silly but hard to avoid

0 commit comments

Comments
 (0)