Questions tagged [arrayfire]

ArrayFire is a software library that simplifies GPU computing.

From the github page:

ArrayFire is a high performance software library for parallel computing with an easy-to-use API. Its array based function set makes parallel programming simple.

ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it platform independent and highly portable.

A few lines of code in ArrayFire can replace dozens of lines of parallel computing code, saving you valuable time and lowering development costs.

Useful Links:

182 questions
18
votes
1 answer

ArrayFire versus raw CUDA programming?

I am quite new to GPU programming, but since I have a computationally intensive task I have turned to the GPU for possible performance gains. I tried rewriting my program with ArrayFire Free version. It is indeed faster than my CPU routine with…
brbs2002
  • 181
  • 1
  • 3
8
votes
4 answers

SVD speed in CPU and GPU

I'm testing svd in Matlab R2014a and it seems that there is no CPU vs GPU speedup. I'm using a GTX 460 card and a Core 2 duo E8500. Here is my code: %test SVD n=10000; %host Mh= rand(n,1000); tic %[Uh,Sh,Vh]= svd(Mh); svd(Mh); toc %device Md =…
mrgloom
  • 20,061
  • 36
  • 171
  • 301
6
votes
1 answer

Retrieving values from arrayfire array as standard types and serialization

I recently saw arrayfire demonstrated at GTC and I thought I would try it. Here are some questions I have run into while trying to use it. I am running Visual Studio 2013 on a Windows 7 system with OpenCL from the AMD App SDK 2.9-1. The biggest…
dcofer
  • 303
  • 2
  • 10
5
votes
1 answer

Trying to get machine learning lib set up on a 290X

I am having some difficulty finding a library with which to explore machine learning/ai. I have a pair of R9 290x's, and can't seem to find a lib which works well for it. First I tried array-fire, which has excellent CPU performance, but poor GPU…
4
votes
1 answer

Arrayfire array from complex host data

I'm having a problem initializing an arrayfire array from host data. The following code will not link for me: constexp int mNumEigenInfos = 100; std::complex mEigenVectors[mNumEigenInfos][6]; af::array mEigenVectorsArray =…
AAG
  • 235
  • 1
  • 11
4
votes
2 answers

Rcpp: cannot open shared object file

I'm trying to develop an R package, which makes use of Arrayfire, thanks to Rcpp library. I've started writing a sample code (let's name it hello_world.cpp) which looks like this: #include // [[Rcpp::export]] bool test_array_fire(){ …
KrzJoa
  • 71
  • 2
  • 4
4
votes
1 answer

How do I convert an Arrayfire Array to a Rust Vec?

I'm new to Rust (and Arrayfire) and working on a small project. I'm trying to convert an Arrayfire Array (only real) back to a Rust Vec. After some research, I wasn't able to find a solution. The Rust Arrayfire documentation section to indexing…
Zwei Blali
  • 53
  • 3
4
votes
1 answer

Why is OpenCV good at processing ORB and Harris Keypoints detection for large-scale images?

I have attended a few weeks ago an Arrayfire webinar hosted by NVIDIA, and the engineers presented some interesting graphs to compare the performance of the ArrayFire library with OpenCV CPU (1 Thread) & GPU (CUDA). HARRIS Keypoint detection ORB…
Djeb
  • 77
  • 6
4
votes
2 answers

Open Source Library for complex mathematical problems like Matrix Mul, LU, FFT etc in OpenCL

The use of GPU in General Purpose is common now. And the very basic thing, the Matrix Multiplication is the first in the OpenCL tutorials. Instead of writing codes and kernel codes for specific gpu. Is it possible to call them from a library like…
neonano
  • 31
  • 1
  • 1
  • 7
3
votes
1 answer

Is it possible to access arrayfire's data memory using CPU backend without data copy?

I wanna use arrayfire in CPU mode (mkl) only to be able to access data without transmission, as it may happen for GPU data. Is there a way to have direct access to arrayfire's data memory (only CPU blackened will be used)?
Mehran Khazaeizadeh
  • 1,021
  • 1
  • 7
  • 13
3
votes
1 answer

How can I have the pixel coordinate X,Y after ArrayFire match_template?

I'm trying to use the matching_template function from the ArrayFire library But I don't know how to find the X and Y coordinates of the best matching value. I was using the imageproc library to perform this function and there it has the…
3
votes
1 answer

ArrayFire GFOR loop unexpected errors

I am trying to use the GFOR construct, but I can't even make it work for basic stuff. I suspect that the GFOR loop does not work with linear indexes, am I correct? Here are some code samples that don't work af::array x(100, 200); af::array y(100,…
eikonoules
  • 53
  • 3
3
votes
2 answers

Transfer data from arrayfire arrays to armadillo structures

I would like to replace some of my calculations formerly written with armadillo with ArrayFire, in order to use some GPU capabilities. I do not want to replace everything, just the time-critical spots. Thus I need to convert armadillo-structures…
arc_lupus
  • 3,942
  • 5
  • 45
  • 81
3
votes
1 answer

How to do a determinant in ArrayFire?

How can i made a simple determinant in a af::array? Tryed to use in af::array x: af::det(x) det(x) x.det() and dont works. Someone can help me? error: no matching function for call to ‘det(af::array&)’ if(det(x) == 0){ candidate: template
3
votes
1 answer

How to create c_void_p PyObject from C++, pass it to Python and retrieve it back to C++

I need to share an ArrayFire array creating in C++ to Python. That works OK: PyObject* arrayToPyObject(const af::array& arr) { // Create arrayfire array and set PyObject* afArray = createObject("arrayfire", "Array"); PyObject*…
1
2 3
12 13