arrayfire / arrayfire-rb

Ruby wrapper for ArrayFire
BSD 3-Clause "New" or "Revised" License
37 stars 4 forks source link

Install arrayfire-rb on macos #6

Open prasunanand opened 6 years ago

prasunanand commented 6 years ago

https://github.com/prasunanand/arrayfire-rb/issues/1

I am struggling to install arrayfire-rb on macos

Arrayfire was installed from here

I am installing the ruby bindings from here

Everything works up to

bundle install

but when I launch

rake install

I receive several

In file included from ../../../../ext/mri/ruby_arrayfire.cpp:5:
/usr/local/include/af/cuda.h:12:10: error: 'cuda.h' file not found with <angled> include; use "quotes"
      instead
#include <cuda.h>
         ^~~~~~~~
         "cuda.h"

Any advice?

prasunanand commented 6 years ago

@9prady9 How do I include <af/cuda.h> on macos ?

9prady9 commented 6 years ago

Similar to the way as you said above. But again, I don't use OSX, @umar456 ?

ruggieroguida commented 6 years ago

@prasunanand Let me know if I can help in any way with testing.

baburdick commented 6 years ago

What was the effect of doing exactly as the error message says?: e.g. changing the #include in ext/mri/ruby_arrayfire.cpp to:

#include "cuda.h"

OR

#include "af/cuda.h"