getting "GLFW wasn't able to initalize" after "import arrayfire"

230 views
Skip to first unread message

Mickey Iluz

unread,
Jul 25, 2017, 1:04:17 PM7/25/17
to ArrayFire Users
Hi,

I did a fresh install of ArrayFire 3.5 and its python wrapper. In ipython I tried a simple import and it failed:


In [1]: import arrayfire
ERROR
: GLFW wasn't able to initalize
Segmentation fault (core dumped)



Building and running C++ code seem to work. Here's af::info():


$ ./af_test
ArrayFire v3.5.0 (CUDA, 64-bit Linux, build 05999f3)
Platform: CUDA Toolkit 8, Driver: 381.22
[0] GeForce GTX 1080 Ti, 11173 MB, CUDA Compute 6.1
-1- GeForce GTX 1080 Ti, 11171 MB, CUDA Compute 6.1



How can I fix it? I don't need GLFW, is there any way to disable it? (ENV var? special build?)


I'm running ubuntu 16.04. (python 2.7.12). 

I installed libglfw3-dev, then ArrayFire-3.5.sh from the website, then pip install arrayfire.


Pradeep Garigipati

unread,
Jul 26, 2017, 12:59:50 AM7/26/17
to Mickey Iluz, ArrayFire Users
If you don't need graphics, set the variable AF_DISABLE_GRAPHICS=1 and that should do it. If there is not active display(headless configs are also possible) which is required by GLFW to initialize successfully. Do you have a display connected to this setup ?

--
You received this message because you are subscribed to the Google Groups "ArrayFire Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arrayfire-use...@googlegroups.com.
To post to this group, send email to arrayfi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arrayfire-users/8d77df92-4d5a-4d51-99d8-e50684c35cdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages