Skip to content

Commit fbda4cb

Browse files
committed
Don't compile GPU code with -fopenmp
1 parent ea46eac commit fbda4cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codegen/module.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ string Module::compile() {
132132
cc = util::getFromEnv(target.compiler_env, target.compiler);
133133
cflags = util::getFromEnv("TACO_CFLAGS",
134134
"-O3 -ffast-math -std=c99") + " -shared -fPIC";
135+
#if USE_OPENMP
136+
cflags += " -fopenmp";
137+
#endif
135138
file_ending = ".c";
136139
shims_file = "";
137140
}
138-
#if USE_OPENMP
139-
cflags += " -fopenmp";
140-
#endif
141141

142142
string cmd = cc + " " + cflags + " " +
143143
prefix + file_ending + " " + shims_file + " " +

0 commit comments

Comments
 (0)