OmniSciDB
0264ff685a
|
#include <UDFCompiler.h>
Public Member Functions | |
UdfCompiler (const std::string &udf_file_name, CudaMgr_Namespace::NvidiaDeviceArch target_arch, const std::string &clang_path="") | |
UdfCompiler (const std::string &udf_file_name, CudaMgr_Namespace::NvidiaDeviceArch target_arch, const std::string &clang_path, const std::vector< std::string > clang_options) | |
int | compileUdf () |
const std::string & | getAstFileName () const |
Private Member Functions | |
void | init (const std::string &clang_path) |
std::string | removeFileExtension (const std::string &path) |
std::string | getFileExt (std::string &s) |
int | parseToAst (const char *file_name) |
std::string | genGpuIrFilename (const char *udf_file_name) |
std::string | genCpuIrFilename (const char *udf_file_name) |
int | compileToGpuByteCode (const char *udf_file_name, bool cpu_mode) |
int | compileToCpuByteCode (const char *udf_file_name) |
void | replaceExtn (std::string &s, const std::string &new_ext) |
int | compileFromCommandLine (const std::vector< std::string > &command_line) |
void | readCompiledModules () |
void | readGpuCompiledModule () |
void | readCpuCompiledModule () |
int | compileForGpu () |
Private Attributes | |
std::string | udf_file_name_ |
std::string | udf_ast_file_name_ |
CudaMgr_Namespace::NvidiaDeviceArch | target_arch_ |
std::string | clang_path_ |
std::vector< std::string > | clang_options_ |
Definition at line 50 of file UDFCompiler.h.
UdfCompiler::UdfCompiler | ( | const std::string & | udf_file_name, |
CudaMgr_Namespace::NvidiaDeviceArch | target_arch, | ||
const std::string & | clang_path = "" |
||
) |
Definition at line 378 of file UDFCompiler.cpp.
References init().
UdfCompiler::UdfCompiler | ( | const std::string & | udf_file_name, |
CudaMgr_Namespace::NvidiaDeviceArch | target_arch, | ||
const std::string & | clang_path, | ||
const std::vector< std::string > | clang_options | ||
) |
Definition at line 387 of file UDFCompiler.cpp.
References init().
|
private |
Definition at line 419 of file UDFCompiler.cpp.
References compileToGpuByteCode(), and udf_file_name_.
Referenced by compileUdf().
|
private |
Definition at line 214 of file UDFCompiler.cpp.
References parse_ast::end, logger::FATAL, UdfClangDriver::getClangDriver(), LOG, run_benchmark_import::res, and UdfClangDriver::the_driver.
|
private |
Definition at line 297 of file UDFCompiler.cpp.
Referenced by compileUdf().
|
private |
Definition at line 255 of file UDFCompiler.cpp.
References CudaMgr_Namespace::CudaMgr::deviceArchToSM(), and get_cuda_home().
Referenced by compileForGpu().
int UdfCompiler::compileUdf | ( | ) |
Definition at line 441 of file UDFCompiler.cpp.
References compileForGpu(), compileToCpuByteCode(), logger::FATAL, logger::INFO, LOG, parseToAst(), readCpuCompiledModule(), readGpuCompiledModule(), and udf_file_name_.
Referenced by DBHandler::DBHandler().
|
private |
Definition at line 207 of file UDFCompiler.cpp.
Referenced by readCpuCompiledModule().
|
private |
Definition at line 200 of file UDFCompiler.cpp.
Referenced by readGpuCompiledModule().
const std::string & UdfCompiler::getAstFileName | ( | ) | const |
Definition at line 350 of file UDFCompiler.cpp.
Referenced by DBHandler::DBHandler().
|
private |
Definition at line 185 of file UDFCompiler.cpp.
|
private |
Definition at line 354 of file UDFCompiler.cpp.
Referenced by UdfCompiler().
|
private |
Definition at line 312 of file UDFCompiler.cpp.
References anonymous_namespace{UDFCompiler.cpp}::convert(), gpu_enabled::copy(), UdfClangDriver::getClangDriver(), UdfClangDriver::the_driver, and ToolingSampleCategory().
Referenced by compileUdf().
|
private |
Definition at line 414 of file UDFCompiler.cpp.
References readCpuCompiledModule(), and readGpuCompiledModule().
|
private |
Definition at line 398 of file UDFCompiler.cpp.
References genCpuIrFilename(), read_udf_cpu_module(), udf_file_name_, and VLOG.
Referenced by compileUdf(), and readCompiledModules().
|
private |
Definition at line 406 of file UDFCompiler.cpp.
References genGpuIrFilename(), read_udf_gpu_module(), udf_file_name_, and VLOG.
Referenced by compileUdf(), and readCompiledModules().
|
private |
Definition at line 172 of file UDFCompiler.cpp.
|
private |
Definition at line 192 of file UDFCompiler.cpp.
|
private |
Definition at line 83 of file UDFCompiler.h.
|
private |
Definition at line 82 of file UDFCompiler.h.
|
private |
Definition at line 81 of file UDFCompiler.h.
|
private |
Definition at line 80 of file UDFCompiler.h.
|
private |
Definition at line 79 of file UDFCompiler.h.
Referenced by compileForGpu(), compileUdf(), readCpuCompiledModule(), and readGpuCompiledModule().