-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation Fault #239
Comments
That should not be happening, can you try with a more recent ArrayFire (latest is v3.6.4)? Something about your environment is different, some libraries missing / old? What is your OS? |
I am having a pre segment fault on Mac OS, the julia> versioninfo()
Julia Version 1.1.1
Commit 55e36cc (2019-05-16 04:10 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin15.6.0)
CPU: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
julia> using Libdl
julia> dlopen("libaf")
Ptr{Nothing} @0x00007f8f99f3aae0
julia> using ArrayFire
[1] 36449 segmentation fault julia Thanks! |
That's a different issue, the only thing that happens when you call |
Hi @GAIKA, I just download the binary lib on the website and verified the "helloword" (opencl and cpu) does works: ➜ helloworld ./helloworld_cpu
ArrayFire v3.6.4 (CPU, 64-bit Mac OSX, build 1b8030c5)
[0] Intel: Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz, 16384 MB, Max threads(8)
Create a 5-by-3 matrix of random floats on the GPU
A
[5 3 1 1]
0.6010 0.5497 0.1583
0.0278 0.2864 0.3712
0.9806 0.3410 0.3543
0.2126 0.7509 0.6450
0.0655 0.4105 0.9675
... I tried more, for instance |
|
I choose to recompile and it's really time-consuming on my machine. While waiting, I can also confirm the segment fault on Linux: julia> versioninfo()
Julia Version 1.1.1
Commit 55e36cc308 (2019-05-16 04:10 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
julia> using ArrayFire
ERROR: GLFW wasn't able to initalize
ArrayFire v3.6.4 (CUDA, 64-bit Linux, build 1b8030c)
Platform: CUDA Toolkit 10.0, Driver: 418.67
[0] Quadro P400, 1967 MB, CUDA Compute 6.1
julia>
signal (11): Segmentation fault
in expression starting at no file:0
unknown function (ip: 0x7fd3982ff89f)
Allocations: 8006636 (Pool: 8004884; Big: 1752); GC: 16
[1] 141577 segmentation fault (core dumped) julia |
I am experiencing a similar issue to the segmentation fault on the "using" from REPL as @shipengcheng1230
However it works from command line:
Also from within REPL I can do: It runs through, but gives the same 8 FFT failures mentioned in #243
I guess this is similar to the issue I found on OpenCL: |
Hi
Though I do not get issues while using ArrayFire, but I always get Segmentation Fault while exiting from Julia after using ArrayFire. Please see the screen capture below:
Any workaround to resolve this problem?
Thanks in advance!
Rahul
The text was updated successfully, but these errors were encountered: