Skip to content

Commit 0a77c91

Browse files
authored
Merge pull request #219 from JuliaGPU/tb/deps
Move the testsuite outside of the main package sources.
2 parents a20368e + 07f0df8 commit 0a77c91

18 files changed

+22
-112
lines changed

Manifest.toml

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -15,61 +15,14 @@ version = "1.0.0"
1515
[[Base64]]
1616
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
1717

18-
[[BinaryProvider]]
19-
deps = ["Libdl", "SHA"]
20-
git-tree-sha1 = "29995a7b317bbd06be147e1974a3541ce2502dca"
21-
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
22-
version = "0.5.7"
23-
24-
[[Compat]]
25-
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
26-
git-tree-sha1 = "ed2c4abadf84c53d9e58510b5fc48912c2336fbb"
27-
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
28-
version = "2.2.0"
29-
30-
[[Conda]]
31-
deps = ["JSON", "VersionParsing"]
32-
git-tree-sha1 = "9a11d428dcdc425072af4aea19ab1e8c3e01c032"
33-
uuid = "8f4d0f93-b110-5947-807f-2305c1781a2d"
34-
version = "1.3.0"
35-
36-
[[Dates]]
37-
deps = ["Printf"]
38-
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
39-
40-
[[DelimitedFiles]]
41-
deps = ["Mmap"]
42-
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
43-
4418
[[Distributed]]
4519
deps = ["Random", "Serialization", "Sockets"]
4620
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
4721

48-
[[FFTW]]
49-
deps = ["AbstractFFTs", "BinaryProvider", "Conda", "Libdl", "LinearAlgebra", "Reexport", "Test"]
50-
git-tree-sha1 = "6c5b420da0b8c12098048561b8d58f81adea506f"
51-
uuid = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
52-
version = "1.0.1"
53-
54-
[[FillArrays]]
55-
deps = ["LinearAlgebra", "Random", "SparseArrays"]
56-
git-tree-sha1 = "de38b0253ade98340fabaf220f368f6144541938"
57-
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
58-
version = "0.7.4"
59-
6022
[[InteractiveUtils]]
6123
deps = ["Markdown"]
6224
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
6325

64-
[[JSON]]
65-
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
66-
git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e"
67-
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
68-
version = "0.21.0"
69-
70-
[[LibGit2]]
71-
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
72-
7326
[[Libdl]]
7427
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
7528

@@ -84,71 +37,23 @@ uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
8437
deps = ["Base64"]
8538
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
8639

87-
[[Mmap]]
88-
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
89-
90-
[[Parsers]]
91-
deps = ["Dates", "Test"]
92-
git-tree-sha1 = "ef0af6c8601db18c282d092ccbd2f01f3f0cd70b"
93-
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
94-
version = "0.3.7"
95-
96-
[[Pkg]]
97-
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
98-
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
99-
10040
[[Printf]]
10141
deps = ["Unicode"]
10242
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
10343

104-
[[REPL]]
105-
deps = ["InteractiveUtils", "Markdown", "Sockets"]
106-
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
107-
10844
[[Random]]
10945
deps = ["Serialization"]
11046
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
11147

112-
[[Reexport]]
113-
deps = ["Pkg"]
114-
git-tree-sha1 = "7b1d07f411bc8ddb7977ec7f377b97b158514fe0"
115-
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
116-
version = "0.2.0"
117-
118-
[[SHA]]
119-
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
120-
12148
[[Serialization]]
12249
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
12350

124-
[[SharedArrays]]
125-
deps = ["Distributed", "Mmap", "Random", "Serialization"]
126-
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
127-
12851
[[Sockets]]
12952
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
13053

131-
[[SparseArrays]]
132-
deps = ["LinearAlgebra", "Random"]
133-
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
134-
135-
[[Statistics]]
136-
deps = ["LinearAlgebra", "SparseArrays"]
137-
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
138-
13954
[[Test]]
14055
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
14156
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
14257

143-
[[UUIDs]]
144-
deps = ["Random", "SHA"]
145-
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
146-
14758
[[Unicode]]
14859
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
149-
150-
[[VersionParsing]]
151-
deps = ["Compat"]
152-
git-tree-sha1 = "c9d5aa108588b978bd859554660c8a5c4f2f7669"
153-
uuid = "81def892-9a0e-5fdd-b105-ffc91e053289"
154-
version = "1.1.3"

Project.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@ uuid = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
33
version = "1.0.4"
44

55
[deps]
6+
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
67
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
7-
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
8-
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
98
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
109
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1110
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1211
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
13-
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1412

1513
[compat]
14+
AbstractFFTs = "0.4"
1615
Adapt = "0.4.1, 1.0"
17-
FFTW = "0.2, 0.3, 1.0"
18-
FillArrays = "0.3, 0.4, 0.5, 0.6, 0.7"
1916
julia = "1.0"
17+
18+
[extras]
19+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
20+
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
21+
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
22+
23+
[targets]
24+
test = ["Test", "FFTW", "FillArrays"]

src/GPUArrays.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using Printf
1212
using LinearAlgebra.BLAS
1313
using Base.Cartesian
1414

15-
using FFTW
15+
using AbstractFFTs
1616

1717
using Adapt
1818

@@ -36,8 +36,6 @@ include("random.jl")
3636
# CPU implementation
3737
include("array.jl")
3838

39-
include("testsuite.jl")
40-
4139
include("quirks.jl")
4240

4341
end # module

src/array.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ struct FFTPlan{T}
225225
p::T
226226
end
227227

228-
FFTW.plan_fft(A::JLArray; kw_args...) = FFTPlan(plan_fft(A.data; kw_args...))
229-
FFTW.plan_fft!(A::JLArray; kw_args...) = FFTPlan(plan_fft!(A.data; kw_args...))
230-
FFTW.plan_bfft!(A::JLArray; kw_args...) = FFTPlan(plan_bfft!(A.data; kw_args...))
231-
FFTW.plan_bfft(A::JLArray; kw_args...) = FFTPlan(plan_bfft(A.data; kw_args...))
232-
FFTW.plan_ifft!(A::JLArray; kw_args...) = FFTPlan(plan_ifft!(A.data; kw_args...))
233-
FFTW.plan_ifft(A::JLArray; kw_args...) = FFTPlan(plan_ifft(A.data; kw_args...))
228+
AbstractFFTs.plan_fft(A::JLArray; kw_args...) = FFTPlan(plan_fft(A.data; kw_args...))
229+
AbstractFFTs.plan_fft!(A::JLArray; kw_args...) = FFTPlan(plan_fft!(A.data; kw_args...))
230+
AbstractFFTs.plan_bfft!(A::JLArray; kw_args...) = FFTPlan(plan_bfft!(A.data; kw_args...))
231+
AbstractFFTs.plan_bfft(A::JLArray; kw_args...) = FFTPlan(plan_bfft(A.data; kw_args...))
232+
AbstractFFTs.plan_ifft!(A::JLArray; kw_args...) = FFTPlan(plan_ifft!(A.data; kw_args...))
233+
AbstractFFTs.plan_ifft(A::JLArray; kw_args...) = FFTPlan(plan_ifft(A.data; kw_args...))
234234

235235
function Base.:(*)(plan::FFTPlan, A::JLArray)
236236
x = plan.p * A.data

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using GPUArrays, Test
22

3+
include("testsuite.jl")
4+
35
@testset "JLArray" begin
4-
GPUArrays.test(JLArray)
6+
TestSuite.test(JLArray)
57
end

src/testsuite.jl renamed to test/testsuite.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ include("testsuite/fft.jl")
4141
include("testsuite/blas.jl")
4242
include("testsuite/random.jl")
4343

44-
end
45-
4644

4745
"""
4846
Runs the entire GPUArrays test suite on array type `AT`
@@ -61,3 +59,5 @@ function test(AT::Type{<:GPUArray})
6159
TestSuite.test_blas(AT)
6260
TestSuite.test_random(AT)
6361
end
62+
63+
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)