nlcpy.jit.get_default_cflags
- nlcpy.jit.get_default_cflags(openmp=True, opt_level=2, debug=False)[source]
Gets default compiler flags.
- Parameters
- openmpbool
Enables OpenMP or not. Defaults to
True
.- opt_levelint
Optimization level. Defaults to
2
.- debugbool
Adding
-g
option or not. Defaults toFalse
.
- Returns
- cflagstuple of str
Compiler flags.
Examples
>>> import nlcpy >>> from pprint import pprint >>> cflags = nlcpy.jit.get_default_cflags(openmp=True, opt_level=2, debug=False) >>> pprint(cflags) ('-c', '-fpic', '-O2', '-I', '/your/path/to/nlcpy/include', '-march=ve3' '-fopenmp')