arrayfire-rb icon indicating copy to clipboard operation
arrayfire-rb copied to clipboard

Install arrayfire-rb on macos

Open prasunanand opened this issue 8 years ago • 4 comments

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 avatar Nov 29 '17 11:11 prasunanand

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

prasunanand avatar Nov 29 '17 11:11 prasunanand

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

9prady9 avatar Nov 29 '17 11:11 9prady9

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

ruggieroguida avatar Dec 01 '17 08:12 ruggieroguida

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"

baburdick avatar Jun 01 '18 02:06 baburdick