FreeTensor
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
freetensor::Config Class Reference

#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< TargetdefaultTarget ()
 
static void setDefaultDevice (const Ref< Device > &dev)
 
static Ref< DevicedefaultDevice ()
 
static void setRuntimeDir (const std::vector< std::filesystem::path > &paths)
 
static const std::vector< std::filesystem::path > & runtimeDir ()
 

Detailed Description

Global configurations

All writable options with simple types can be set by environment variables

Member Function Documentation

◆ backendCompilerCXX()

static const std::vector< std::filesystem::path > & freetensor::Config::backendCompilerCXX ( )
inlinestatic

◆ backendCompilerNVCC()

static const std::vector< std::filesystem::path > & freetensor::Config::backendCompilerNVCC ( )
inlinestatic

◆ backendOpenMP()

static const std::vector< std::filesystem::path > & freetensor::Config::backendOpenMP ( )
inlinestatic

◆ debugBinary()

static bool freetensor::Config::debugBinary ( )
inlinestatic

◆ debugCUDAWithUM()

static bool freetensor::Config::debugCUDAWithUM ( )
inlinestatic

◆ debugRuntimeCheck()

static bool freetensor::Config::debugRuntimeCheck ( )
inlinestatic

◆ defaultDevice()

static Ref< Device > freetensor::Config::defaultDevice ( )
inlinestatic

◆ defaultTarget()

static Ref< Target > freetensor::Config::defaultTarget ( )
inlinestatic

◆ fastMath()

static bool freetensor::Config::fastMath ( )
inlinestatic

◆ init()

void freetensor::Config::init ( )
static

◆ prettyPrint()

static bool freetensor::Config::prettyPrint ( )
inlinestatic

◆ printAllId()

static bool freetensor::Config::printAllId ( )
inlinestatic

◆ printSourceLocation()

static bool freetensor::Config::printSourceLocation ( )
inlinestatic

◆ runtimeDir()

static const std::vector< std::filesystem::path > & freetensor::Config::runtimeDir ( )
inlinestatic

◆ setBackendCompilerCXX()

static void freetensor::Config::setBackendCompilerCXX ( const std::vector< std::filesystem::path > &  paths)
inlinestatic

Set the C++ compiler for CPU backend.

Parameters
paths: Paths to C++ compiler. Should be raw paths (unescaped).

◆ setBackendCompilerNVCC()

static void freetensor::Config::setBackendCompilerNVCC ( const std::vector< std::filesystem::path > &  paths)
inlinestatic

Set the NVCC compiler for GPU backend.

Parameters
paths: Paths to NVCC compiler. Should be raw paths (unescaped).

◆ setBackendOpenMP()

static void freetensor::Config::setBackendOpenMP ( const std::vector< std::filesystem::path > &  path)
inlinestatic

Set the OpenMP library linked to the compiled executable.

Parameters
path: Path to the OpenMP library. Should be a raw path (unescaped).

◆ setDebugBinary()

static void freetensor::Config::setDebugBinary ( bool  flag = true)
inlinestatic

◆ setDebugCUDAWithUM()

static void freetensor::Config::setDebugCUDAWithUM ( bool  flag = true)
inlinestatic

◆ setDebugRuntimeCheck()

static void freetensor::Config::setDebugRuntimeCheck ( bool  flag = true)
inlinestatic

◆ setDefaultDevice()

static void freetensor::Config::setDefaultDevice ( const Ref< Device > &  dev)
inlinestatic

◆ setDefaultTarget()

static void freetensor::Config::setDefaultTarget ( const Ref< Target > &  target)
inlinestatic

◆ setFastMath()

static void freetensor::Config::setFastMath ( bool  flag = true)
inlinestatic

◆ setPrettyPrint()

static void freetensor::Config::setPrettyPrint ( bool  pretty = true)
inlinestatic

◆ setPrintAllId()

static void freetensor::Config::setPrintAllId ( bool  flag = true)
inlinestatic

◆ setPrintSourceLocation()

static void freetensor::Config::setPrintSourceLocation ( bool  flag = true)
inlinestatic

◆ setRuntimeDir()

static void freetensor::Config::setRuntimeDir ( const std::vector< std::filesystem::path > &  paths)
inlinestatic

◆ setWerror()

static void freetensor::Config::setWerror ( bool  flag = true)
inlinestatic

◆ werror()

static bool freetensor::Config::werror ( )
inlinestatic

◆ withCUDA()

bool freetensor::Config::withCUDA ( )
static

◆ withMKL()

bool freetensor::Config::withMKL ( )
static

Called in src/ffi/config.cc.

◆ withPyTorch()

bool freetensor::Config::withPyTorch ( )
static

The documentation for this class was generated from the following files: