Skip to content

Commit 9648818

Browse files
committed
get_num_tblis_threads to unexported get_num_threads
1 parent 0fbff61 commit 9648818

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/TensorOperationsTBLIS.jl

+4-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ using .LibTBLIS
1616
using .LibTBLIS: LibTBLIS, len_type, stride_type
1717

1818
export TBLIS
19-
export get_num_tblis_threads, set_num_tblis_threads
2019

21-
get_num_tblis_threads() = convert(Int, LibTBLIS.tblis_get_num_threads())
22-
set_num_tblis_threads(n) = LibTBLIS.tblis_set_num_threads(convert(Cuint, n))
20+
get_num_threads() = convert(Int, LibTBLIS.tblis_get_num_threads())
21+
set_num_threads(n) = LibTBLIS.tblis_set_num_threads(convert(Cuint, n))
2322

2423
# TensorOperations
2524
#------------------
@@ -34,8 +33,8 @@ or BLAS.
3433
struct TBLIS <: TensorOperations.AbstractBackend end
3534

3635
Base.@deprecate(tblisBackend(), TBLIS())
37-
Base.@deprecate(tblis_get_num_threads(), get_num_tblis_threads())
38-
Base.@deprecate(tblis_set_num_threads(n), set_num_tblis_threads(n))
36+
Base.@deprecate(tblis_get_num_threads(), get_num_threads())
37+
Base.@deprecate(tblis_set_num_threads(n), set_num_threads(n))
3938

4039
include("strided.jl")
4140

test/runtests.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ using Test, Random, LinearAlgebra
55
Random.seed!(1234567)
66

77
@testset "TensorOperationsTBLIS.jl" begin
8-
set_num_tblis_threads(1)
8+
TensorOperationsTBLIS.set_num_threads(1)
99
@testset "method syntax" verbose = true begin
1010
include("methods.jl")
1111
end
1212

1313
@test get_num_tblis_threads() == 1
14-
set_num_tblis_threads(2)
14+
TensorOperationsTBLIS.set_num_threads(2)
1515
@testset "macro with index notation" verbose = true begin
1616
include("tensor.jl")
1717
end
1818

19-
@test get_num_tblis_threads() == 2
19+
@test TensorOperationsTBLIS.get_num_threads() == 2
2020
end

0 commit comments

Comments
 (0)