[TRITON] Fixed misaligned address issue

This commit is contained in:
Philippe Tillet
2020-06-05 12:00:42 -04:00
committed by Philippe Tillet
parent a8f1b85c5f
commit 4bb0311f60
2 changed files with 32 additions and 5 deletions

View File

@@ -266,6 +266,7 @@ cu_module::cu_module(driver::context * context, std::unique_ptr<llvm::Module> ll
cu_module::cu_module(driver::context * context, std::string const & source) : module(context, CUmodule(), true), source_(source){
cu_context::context_switcher ctx(*context);
// std::cout << source << std::endl;
// JIT compile source-code
CUjit_option opt[] = {CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES, CU_JIT_ERROR_LOG_BUFFER};
unsigned int errbufsize = 8096;