JuliaGPU / ArrayFire.jl

Julia wrapper for the ArrayFire library
Other
204 stars 37 forks source link

Segfault when using ArrayFire.jl on Fedora #223

Open galenlynch opened 5 years ago

galenlynch commented 5 years ago

I can't use ArrayFire, and it might have something to do with Wayland on Fedora 29?

$ JULIA_ARRAYFIRE_BACKEND=cuda julia
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.1 (2018-09-29)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using ArrayFire
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 
X server found. dri2 connection failed! 

signal (11): Segmentation fault
in expression starting at no file:0
unknown function (ip: 0xffffffffffffffff)
unknown function (ip: 0x2007)
Allocations: 3785089 (Pool: 3784424; Big: 665); GC: 7
[1]    4173 segmentation fault (core dumped)  JULIA_ARRAYFIRE_BACKEND=cuda julia
ghost commented 5 years ago

seems like it, try recompiling arrayfire without graphics:

cmake <PATH TO ARRAYFIRE SOURCE> -DCMAKE_BUILD_TYPE=Release -DAF_WITH_GRAPHICS=OFF -DCPACK_GENERATOR=RPM