File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 49
49
50
50
function _check_likwid_gpusupport ()
51
51
# Set `ZES_ENABLE_SYSMAN` to work around https://github.com/open-mpi/ompi/issues/10142
52
- withenv (" ZES_ENABLE_SYSMAN" => " 1" ) do
53
- dlopen (liblikwid) do handle
54
- return ! isnothing (dlsym (handle, :likwid_gpuMarkerInit ; throw_error= false ))
52
+ try
53
+ withenv (" ZES_ENABLE_SYSMAN" => " 1" ) do
54
+ dlopen (liblikwid) do handle
55
+ return ! isnothing (dlsym (handle, :likwid_gpuMarkerInit ; throw_error= false ))
56
+ end
55
57
end
58
+ catch err
59
+ return false
56
60
end
57
61
end
58
62
@@ -256,4 +260,4 @@ LIKWID_FILEPATH(path::AbstractString) = ENV["LIKWID_FILEPATH"] = path;
256
260
LIKWID_MODE (mode) = ENV [" LIKWID_MODE" ] = mode;
257
261
LIKWID_EVENTS (eventstr:: AbstractString ) = ENV [" LIKWID_EVENTS" ] = eventstr;
258
262
LIKWID_THREADS (cpustr:: AbstractString ) = ENV [" LIKWID_THREADS" ] = cpustr;
259
- LIKWID_MPI_CONNECT (x:: AbstractString ) = ENV [" LIKWID_MPI_CONNECT" ] = x;
263
+ LIKWID_MPI_CONNECT (x:: AbstractString ) = ENV [" LIKWID_MPI_CONNECT" ] = x;
You can’t perform that action at this time.
0 commit comments