|
FreeTensor
|
#include <config.h>
Static Public Member Functions | |
| static void | init () |
| static bool | withMKL () |
| Called in src/ffi/config.cc. | |
| static bool | withCUDA () |
| static bool | withPyTorch () |
| static void | setPrettyPrint (bool pretty=true) |
| static bool | prettyPrint () |
| static void | setPrintAllId (bool flag=true) |
| static bool | printAllId () |
| static void | setPrintSourceLocation (bool flag=true) |
| static bool | printSourceLocation () |
| static void | setFastMath (bool flag=true) |
| static bool | fastMath () |
| static void | setWerror (bool flag=true) |
| static bool | werror () |
| static void | setDebugBinary (bool flag=true) |
| static bool | debugBinary () |
| static void | setDebugRuntimeCheck (bool flag=true) |
| static bool | debugRuntimeCheck () |
| static void | setDebugCUDAWithUM (bool flag=true) |
| static bool | debugCUDAWithUM () |
| static void | setBackendCompilerCXX (const std::vector< std::filesystem::path > &paths) |
| Set the C++ compiler for CPU backend. | |
| static const std::vector< std::filesystem::path > & | backendCompilerCXX () |
| static void | setBackendCompilerNVCC (const std::vector< std::filesystem::path > &paths) |
| Set the NVCC compiler for GPU backend. | |
| static const std::vector< std::filesystem::path > & | backendCompilerNVCC () |
| static void | setBackendOpenMP (const std::vector< std::filesystem::path > &path) |
| Set the OpenMP library linked to the compiled executable. | |
| static const std::vector< std::filesystem::path > & | backendOpenMP () |
| static void | setDefaultTarget (const Ref< Target > &target) |
| static Ref< Target > | defaultTarget () |
| static void | setDefaultDevice (const Ref< Device > &dev) |
| static Ref< Device > | defaultDevice () |
| static void | setRuntimeDir (const std::vector< std::filesystem::path > &paths) |
| static const std::vector< std::filesystem::path > & | runtimeDir () |
Global configurations
All writable options with simple types can be set by environment variables
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Set the C++ compiler for CPU backend.
| paths | : Paths to C++ compiler. Should be raw paths (unescaped). |
|
inlinestatic |
Set the NVCC compiler for GPU backend.
| paths | : Paths to NVCC compiler. Should be raw paths (unescaped). |
|
inlinestatic |
Set the OpenMP library linked to the compiled executable.
| path | : Path to the OpenMP library. Should be a raw path (unescaped). |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Called in src/ffi/config.cc.
|
static |