def detect():
compiler = new_compiler()<EOL>hasopenmp = hasfunction(compiler, '<STR_LIT>')<EOL>needs_gomp = hasopenmp<EOL>if not hasopenmp:<EOL><INDENT>compiler.add_library('<STR_LIT>')<EOL><DEDENT>hasopenmp = hasfunction(compiler, '<STR_LIT>')<EOL>needs_gomp = hasopenmp<EOL>return hasopenmp<EOL>
Does this compiler support OpenMP parallelization?