File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -857,11 +857,14 @@ JIT::JIT(const std::string &libidtr)
857
857
if (!gpuxlibstr.empty ()) {
858
858
_gpulib = std::string (gpuxlibstr);
859
859
} else {
860
- auto imexRoot = get_text_env (" IMEXROOT" );
861
- imexRoot = !imexRoot.empty () ? imexRoot : std::string (CMAKE_IMEX_ROOT);
862
- _gpulib = imexRoot + " /lib/liblevel-zero-runtime.so" ;
860
+ // auto imexRoot = get_text_env("IMEXROOT");
861
+ // imexRoot = !imexRoot.empty() ? imexRoot : std::string(CMAKE_IMEX_ROOT);
862
+ // _gpulib = imexRoot + "/lib/liblevel-zero-runtime.so";
863
+ // _gpulib = imexRoot + "/lib/liblevel-zero-runtime.so";
864
+ // for nv gpu
865
+ _gpulib = mlirRoot + " /lib/libmlir_cuda_runtime.so" ;
863
866
if (!std::ifstream (_gpulib)) {
864
- throw std::runtime_error (" Cannot find liblevel-zero-runtime.so " );
867
+ throw std::runtime_error (" Cannot find lib: " + _gpulib );
865
868
}
866
869
}
867
870
_sharedLibPaths = {_crunnerlib.c_str (), _runnerlib.c_str (),
You can’t perform that action at this time.
0 commit comments