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 @@ -866,11 +866,14 @@ JIT::JIT(const std::string &libidtr)
866
866
if (!gpuxlibstr.empty ()) {
867
867
_gpulib = std::string (gpuxlibstr);
868
868
} else {
869
- auto imexRoot = get_text_env (" IMEXROOT" );
870
- imexRoot = !imexRoot.empty () ? imexRoot : std::string (CMAKE_IMEX_ROOT);
871
- _gpulib = imexRoot + " /lib/liblevel-zero-runtime.so" ;
869
+ // auto imexRoot = get_text_env("IMEXROOT");
870
+ // imexRoot = !imexRoot.empty() ? imexRoot : std::string(CMAKE_IMEX_ROOT);
871
+ // _gpulib = imexRoot + "/lib/liblevel-zero-runtime.so";
872
+ // _gpulib = imexRoot + "/lib/liblevel-zero-runtime.so";
873
+ // for nv gpu
874
+ _gpulib = mlirRoot + " /lib/libmlir_cuda_runtime.so" ;
872
875
if (!std::ifstream (_gpulib)) {
873
- throw std::runtime_error (" Cannot find liblevel-zero-runtime.so " );
876
+ throw std::runtime_error (" Cannot find lib: " + _gpulib );
874
877
}
875
878
}
876
879
_sharedLibPaths = {_crunnerlib.c_str (), _runnerlib.c_str (),
You can’t perform that action at this time.
0 commit comments