Skip to content

Commit 943405b

Browse files
author
Gaika
authored
Julia v0.7 (#191)
* make it work with 0.7 * run on nightly only * clean old code (#192) * require latest julia * drop support for julia v0.6 * drop support for julia v0.6 * no warnings on import (#204) * require latest julia * drop support for julia v0.6 * drop support for julia v0.6 * preserve type * fix memory leak in assignment * release only if returned array is different * add iota * sort by key * fix indexing types * fix some warnings * fix more warnings * fix more warnings * more imports * fix sparse warnings * fix imports * fix warnings * revert back * fix more warnings * silent startup * add std, fix #194 * fix types for sum of booleans and bytes * add topk * add eye * Sum over an iterator (#195) * Flexible interface for linspace and range (#196) * Implementation change of range (#198) * Avoid indexing in range * Make return types of linspace and range explicite * make broadcast work * fix broadcast * already imported * remove autodiff * undef * use structs and nothing * no more linspace * add FFTW and DSP as required * fix deprecation * fix warnings * fix warnings * import without warnings * add adjoint * add lastindex * fix two more warnings * not in base, but in Pkg * fix sparse * fix indexing using regular arrays * fix fft / ifft * fix conv * drop cov and sum(dims) * fix broadcast! * scope has to be tested first * new path * fix for v0.7 * new broadcast style * add 3.6.0 support * ifelse is now select (not able to override builtin) * fixes for v0.7-beta * no irfft1 * no version * use statistics package * factorial moved * factorial is broken * oops * require for backwards compatibility
1 parent 12d41f8 commit 943405b

File tree

20 files changed

+647
-723
lines changed

20 files changed

+647
-723
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ os:
55
- linux
66
julia:
77
# - 0.5
8-
- 0.6
9-
# - nightly
8+
# - 0.6
9+
- nightly
1010
notifications:
1111
email: false
1212
install:
@@ -22,7 +22,7 @@ install:
2222
- sudo ./ArrayFire-v3.5.1_Linux_x86_64.sh --exclude-subdir --prefix=/usr/local
2323
before_script:
2424
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
25-
- julia -e 'Pkg.add("AutoDiffSource");'
25+
- julia -e 'Pkg.add("AutoDiffSource"); Pkg.checkout("AutoDiffSource");'
2626
after_success:
2727
# push coverage results to Coveralls
2828
- julia -e 'cd(Pkg.dir("ArrayFire")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

Manifest.toml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
[[AbstractFFTs]]
2+
deps = ["Compat", "LinearAlgebra"]
3+
git-tree-sha1 = "8d59c3b1463b5e0ad05a3698167f85fac90e184d"
4+
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
5+
version = "0.3.2"
6+
7+
[[Base64]]
8+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
9+
10+
[[BinDeps]]
11+
deps = ["Compat", "Libdl", "SHA", "URIParser"]
12+
git-tree-sha1 = "160d5d926e83e0970dd549ad9fe0ac3e8107e83c"
13+
uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
14+
version = "0.8.8"
15+
16+
[[BinaryProvider]]
17+
deps = ["Compat", "Pkg", "SHA"]
18+
git-tree-sha1 = "94dac52c662ca793008fb689e3daf626b6139943"
19+
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
20+
version = "0.3.3"
21+
22+
[[Compat]]
23+
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Test", "UUIDs", "Unicode"]
24+
git-tree-sha1 = "f3e87ca1e2df8e1e4f82ea504fddf0b9b0894f61"
25+
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
26+
version = "0.69.0"
27+
28+
[[Conda]]
29+
deps = ["BinDeps", "Compat", "JSON", "Libdl", "VersionParsing"]
30+
git-tree-sha1 = "6358e179fb9ad0af5ca9cd4d7c691c413cc121f2"
31+
uuid = "8f4d0f93-b110-5947-807f-2305c1781a2d"
32+
version = "0.8.1"
33+
34+
[[DSP]]
35+
deps = ["AbstractFFTs", "Compat", "FFTW", "Polynomials", "Reexport", "SpecialFunctions"]
36+
git-tree-sha1 = "0ac99956e1ac6bccbcdae0a924ecfa61363d45c7"
37+
uuid = "717857b8-e6f2-59f4-9121-6e50c889abd2"
38+
version = "0.4.0"
39+
40+
[[Dates]]
41+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
42+
43+
[[DelimitedFiles]]
44+
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
45+
46+
[[Distributed]]
47+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
48+
49+
[[FFTW]]
50+
deps = ["AbstractFFTs", "BinaryProvider", "Compat", "Conda", "Libdl", "LinearAlgebra", "Reexport", "Test"]
51+
git-tree-sha1 = "60346335ad3aa60bfbdc358c6d1468bffbcff071"
52+
uuid = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
53+
version = "0.2.3"
54+
55+
[[InteractiveUtils]]
56+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
57+
58+
[[JSON]]
59+
deps = ["Dates", "Distributed", "Mmap", "Sockets", "Test", "Unicode"]
60+
git-tree-sha1 = "723a515212612b2175095fa5fa55da0bb4c377e5"
61+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
62+
version = "0.18.0"
63+
64+
[[LibGit2]]
65+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
66+
67+
[[Libdl]]
68+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
69+
70+
[[LinearAlgebra]]
71+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
72+
73+
[[Markdown]]
74+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
75+
76+
[[Mmap]]
77+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
78+
79+
[[Pkg]]
80+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
81+
82+
[[Polynomials]]
83+
deps = ["Compat"]
84+
git-tree-sha1 = "548a22702594fc372d21fd790aeb3ee377765c1c"
85+
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
86+
version = "0.3.2"
87+
88+
[[Printf]]
89+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
90+
91+
[[REPL]]
92+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
93+
94+
[[Random]]
95+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
96+
97+
[[Reexport]]
98+
git-tree-sha1 = "caba582b2e9ef39b9cfff911aa13c5ca1b9a9896"
99+
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
100+
version = "0.1.0"
101+
102+
[[SHA]]
103+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
104+
105+
[[Serialization]]
106+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
107+
108+
[[SharedArrays]]
109+
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
110+
111+
[[Sockets]]
112+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
113+
114+
[[SparseArrays]]
115+
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
116+
117+
[[SpecialFunctions]]
118+
deps = ["BinDeps", "BinaryProvider", "Compat", "Libdl"]
119+
git-tree-sha1 = "1cf00baba50536d254f02082c90b98d6e4e1f968"
120+
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
121+
version = "0.6.0"
122+
123+
[[Statistics]]
124+
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
125+
126+
[[Test]]
127+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
128+
129+
[[URIParser]]
130+
deps = ["Compat", "Unicode"]
131+
git-tree-sha1 = "0f9c5e2d14e03fbd00696f9394e288bdd5adacbc"
132+
uuid = "30578b45-9adc-5946-b283-645ec420af67"
133+
version = "0.3.1"
134+
135+
[[UUIDs]]
136+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
137+
138+
[[Unicode]]
139+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
140+
141+
[[VersionParsing]]
142+
deps = ["Compat"]
143+
git-tree-sha1 = "e8524bb636735227fd9d750dfa81f98db8bc5b0c"
144+
uuid = "81def892-9a0e-5fdd-b105-ffc91e053289"
145+
version = "1.1.1"

Project.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name = "ArrayFire"
2+
uuid = "b19378d9-d87a-599a-927f-45f220a2c452"
3+
authors = ["Joe Petviashvili <[email protected]>"]
4+
version = "0.7.0"
5+
6+
[deps]
7+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
8+
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
9+
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
10+
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
11+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
12+
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
13+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
14+
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
15+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
16+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

REQUIRE

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
julia 0.5
2-
Compat 0.18
3-
SpecialFunctions 0.0.1
1+
julia 0.7-beta
2+
Compat 0.69.0
3+
DSP 0.4.0
4+
FFTW 0.2.3
5+
SpecialFunctions 0.6.0

deps/build.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
global const af_lib = is_unix() ? "libaf" : "af"
1+
global const af_lib = Sys.isunix() ? "libaf" : "af"
22

3+
using Libdl
34
try
4-
Libdl.dlopen(af_lib)
5+
dlopen(af_lib)
56
catch
6-
warn("ArrayFire library not loaded:
7+
@warn "ArrayFire library not loaded:
78
either download a binary from the official site http://arrayfire.com/download
8-
or you can build from source https://github.com/arrayfire/arrayfire")
9+
or you can build from source https://github.com/arrayfire/arrayfire"
910
rethrow()
1011
end

src/ArrayFire.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
__precompile__()
22
module ArrayFire
33

4+
using Libdl,Random,SparseArrays,LinearAlgebra,FFTW,DSP,Statistics
5+
46
include("common.jl")
57
include("array.jl")
68
include("util.jl")

0 commit comments

Comments
 (0)