-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all kind of fixes + better build (#16)
* use BinDeps for build * properly initialize library * use Primes * fix double free * fix macro hygiene on 0.6 + remove depwarn * misc fixes
- Loading branch information
1 parent
80ef8c7
commit 46d4e7a
Showing
6 changed files
with
106 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/deps/deps.jl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
julia 0.5- | ||
julia 0.5 | ||
OpenCL | ||
Primes | ||
BinDeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using BinDeps | ||
@BinDeps.setup | ||
libnames = ["libCLFFT", "clFFT", "libclFFT"] | ||
libCLFFT = library_dependency("libCLFFT", aliases = libnames) | ||
archive = "package" | ||
libpath = "package/bin" | ||
baseurl = "https://github.com/clMathLibraries/clFFT/releases/download/v2.12.2/clFFT-2.12.2-" | ||
# download a pre-compiled binary (built by GLFW) | ||
if is_windows() | ||
if Sys.ARCH == :x86_64 | ||
uri = URI(baseurl * "Windows-x64.zip") | ||
provides( | ||
Binaries, uri, | ||
libCLFFT, unpacked_dir = archive, | ||
installed_libpath = libpath, os = :Windows | ||
) | ||
else | ||
error("Only 64 bits windows supported with automatic build") | ||
end | ||
end | ||
|
||
if is_linux() | ||
provides(AptGet, "libclfft-dev", libCLFFT) | ||
if Sys.ARCH == :x86_64 | ||
uri = URI(baseurl * "Linux-x64.tar.gz") | ||
provides( | ||
Binaries, uri, | ||
libCLFFT, unpacked_dir = archive, | ||
installed_libpath = libpath, os = :Linux | ||
) | ||
end | ||
end | ||
if is_apple() | ||
error(""" | ||
OSX not oficially supported. | ||
Find manual build instructions on: https://github.com/clMathLibraries/clBLAS/wiki/Build | ||
""") | ||
end | ||
|
||
@BinDeps.install Dict("libCLFFT" => "libCLFFT") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters