File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 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)
866866 if (!gpuxlibstr.empty ()) {
867867 _gpulib = std::string (gpuxlibstr);
868868 } 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" ;
872875 if (!std::ifstream (_gpulib)) {
873- throw std::runtime_error (" Cannot find liblevel-zero-runtime.so " );
876+ throw std::runtime_error (" Cannot find lib: " + _gpulib );
874877 }
875878 }
876879 _sharedLibPaths = {_crunnerlib.c_str (), _runnerlib.c_str (),
You can’t perform that action at this time.
0 commit comments