Skip to content

Commit e26bb96

Browse files
vchuravypxl-th
andauthored
Prefer librocalution_hip over librocalution (#691)
* Prefer librocalution_hip over librocalution * Do not load rocALUTION since it is not used --------- Co-authored-by: Anton Smirnov <[email protected]>
1 parent d77cee6 commit e26bb96

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

src/AMDGPU.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ function __init__()
213213
end
214214

215215
hiplibs = (
216-
("rocBLAS", :rocblas), ("rocSPARSE", :rocsparse),
217-
("rocSOLVER", :rocsolver), ("rocALUTION", :rocalution),
216+
("rocBLAS", :rocblas), ("rocSPARSE", :rocsparse), ("rocSOLVER", :rocsolver),
218217
("rocRAND", :rocrand), ("rocFFT", :rocfft), ("MIOpen", :MIOpen))
219218
for (name, symbol) in hiplibs
220219
functional(symbol) || @warn "$name is unavailable, functionality will be disabled."

src/discovery/discovery.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function get_device_libs(from_artifact::Bool; rocm_path::String)
3535
end
3636

3737
export lld_artifact, lld_path, libhsaruntime, libdevice_libs, libhip
38-
export librocblas, librocsparse, librocsolver, librocalution
38+
export librocblas, librocsparse, librocsolver
3939
export librocrand, librocfft, libMIOpen_path
4040
export julia_exeflags
4141

@@ -106,7 +106,6 @@ function __init__()
106106
global librocblas = get_library(lib_prefix * "rocblas"; rocm_path)
107107
global librocsparse = get_library(lib_prefix * "rocsparse"; rocm_path)
108108
global librocsolver = get_library(lib_prefix * "rocsolver"; rocm_path)
109-
global librocalution = get_library(lib_prefix * "rocalution"; rocm_path)
110109
global librocrand = get_library(lib_prefix * "rocrand"; rocm_path)
111110
global librocfft = get_library(lib_prefix * "rocfft"; rocm_path)
112111
global libMIOpen_path = get_library(lib_prefix * "MIOpen"; rocm_path)

src/utils.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ function versioninfo()
99
_status(functional(:hip)) "HIP" _ver(:hip, HIP.runtime_version) _libpath(libhip);
1010
_status(functional(:rocblas)) "rocBLAS" _ver(:rocblas, rocBLAS.version) _libpath(librocblas);
1111
_status(functional(:rocsolver)) "rocSOLVER" _ver(:rocsolver, rocSOLVER.version) _libpath(librocsolver);
12-
_status(functional(:rocalution)) "rocALUTION" "-" _libpath(librocalution);
1312
_status(functional(:rocsparse)) "rocSPARSE" "-" _libpath(librocsparse);
1413
_status(functional(:rocrand)) "rocRAND" _ver(:rocrand, rocRAND.version) _libpath(librocrand);
1514
_status(functional(:rocfft)) "rocFFT" _ver(:rocfft, rocFFT.version) _libpath(librocfft);
@@ -62,7 +61,6 @@ function correctly. Available `component` values are:
6261
- `:device_libs` - Queries ROCm device libraries availability
6362
- `:rocblas` - Queries rocBLAS library availability
6463
- `:rocsolver` - Queries rocSOLVER library availability
65-
- `:rocalution` - Queries rocALUTION library availability
6664
- `:rocsparse` - Queries rocSPARSE library availability
6765
- `:rocrand` - Queries rocRAND library availability
6866
- `:rocfft` - Queries rocFFT library availability
@@ -82,8 +80,6 @@ function functional(component::Symbol)
8280
return !isempty(librocblas)
8381
elseif component == :rocsolver
8482
return !isempty(librocsolver)
85-
elseif component == :rocalution
86-
return !isempty(librocalution)
8783
elseif component == :rocsparse
8884
return !isempty(librocsparse)
8985
elseif component == :rocrand
@@ -95,7 +91,7 @@ function functional(component::Symbol)
9591
elseif component == :all
9692
for component in (
9793
:hip, :lld, :device_libs, :rocblas, :rocsolver,
98-
:rocalution, :rocsparse, :rocrand, :rocfft, :MIOpen,
94+
:rocsparse, :rocrand, :rocfft, :MIOpen,
9995
)
10096
functional(component) || return false
10197
end

0 commit comments

Comments
 (0)