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
0
votes
1 answer

Arrayfire Bessel Functions

I am trying to understand the syntax of the bessel functions defined in the arrayfire documentation provided here: http://archive.arrayfire.com/arrayfire/c/group__image__func__c__bessel.htm#gaa625037807cb75ef8815051c066e9657 Under the section for …
0
votes
2 answers

ArrayFire approx1 / approx2 examples

Does anyone know how to use ArrayFire's approx1/approx2 functions? I can't find examples of their usage online, and so cannot figure out what exactly the interpolation position arrays should be. I have tried af::approx2(inArray, af::where(inArray…
solyuina
  • 1
  • 2
0
votes
0 answers

ArrayFire Installation Failure on MacOS

I tried to install ArrayFire using the official installer, but it ended up with installation failure. Then, I tried to use homebrew to install, but brew install arrayfire gives this error: Error: No available formula with the name "arrayfire" I…
Norman
  • 310
  • 3
  • 12
0
votes
0 answers

Is it possible to use ArrayFire in Juliabox?

Is it possible to use ArrayFire in Juliabox? If it is possible how can I do it? -I downloaded the installer and I installed ArrayFire following the installation steps. -I included the PATH of the installed folder through push! (LOAD_PATH, "Path") -I…
4lrdyD
  • 433
  • 2
  • 10
0
votes
1 answer

arrayfire python free device memory

I am tryin to use arrayfire with python. I have an GTX550Ti and use opencl backend since I don't seem to get cuda working (don't know if compute version 2.1 of the 550Ti is too low for arrayfire). I try to free memory / arrays that are allocated…
Erik Thysell
  • 1,160
  • 1
  • 14
  • 31
0
votes
0 answers

GPU memory management in arrayfire: Running same script more than once in the same Python console

Is there a way of resetting the GPU through arrayfire with each run without restarting the Python console? I have a python script which calls a number of functions to be executed on a GPU using arrayfire. The script gives the expected result when…
user6565699
0
votes
1 answer

Getting seg fault from Simple arrayfire constructor

I am getting a Segmentation Fault, from calling a simple arrayfire constructor. #include int main(){ af_array a; int N = 10; dim_t dims = 10; af_randu(&a, N, &dims, f32); af::array b(a); return 0; }
Dinesh K.
  • 323
  • 5
  • 10
0
votes
1 answer

Error when using ArrayFire with OpenCL

I installed ArrayFire successfully, and the example helloworld works fine when I choose the Visual Studio configuration CUDA_x64. However when I change to OpenCL_x64, the compilation is successful, but I get the running error as…
yinhao
  • 101
  • 1
  • 6
0
votes
1 answer

OpenCL twice as slow as CUDA on GTX Titan

I have a beam propagation algorithm I just implemented in ArrayFire. I was using the OpenCL backend with my GTX Titan card. With OpenCL it was running at about 25,000 steps per minute. I then switched it to the CUDA backend and the performance…
chasep255
  • 11,745
  • 8
  • 58
  • 115
0
votes
1 answer

ArrayFire is missing LAPACK - but I have it

I just downloaded the latest release of ArrayFire (3.3.1), and am trying to build it. I'm stuck at cmake . though. I installed a bunch of missing libraries, reran it, and now I get: -- Could NOT find LAPACK (missing: LAPACK_LIBRARIES) CMake…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
0 answers

Load ArrayFire Array from file

i need to find a way to load an ArrayFire array from a file, the file have the format: ix iy iz val, where ( ix, iy , iz) are the coordinates in wich the value val has to be. i open the file in the c++ way ( with getline and so ) and parse the…
RolandDeschain
  • 483
  • 1
  • 4
  • 17
0
votes
2 answers

From ArrayFire to OpenGL on AMD?

Is it possible to go from ArrayFire to OpenGL and back using an AMD graphics card? There is an article on how to do it using CUDA. Any hints on using a similar method for OpenCL, so it can be used cross-platform? Update What I would like to do in…
Jan Rüegg
  • 9,587
  • 8
  • 63
  • 105
0
votes
1 answer

How to shift an ArrayFire 3D array

i have one problem. Y have a 3d ArrayFire array and i need to shift each slice in a determinated amount. ArrayFire comes with a function to do this but i dont undestand some things. the code is something like this, but dont seems to work i think …
RolandDeschain
  • 483
  • 1
  • 4
  • 17
0
votes
1 answer

Iteratively removing elements from ArrayFire array

I am trying to remove elements from an ArrayFire array (af::array) iteratively in a loop. Say I have: af::array arr = af::range(af::dim4(4), -1, u32) + 1); // arr = [1 2 3 4] (it's a column vector, though shown as a row vector here) At each…
endbegin
  • 1,610
  • 1
  • 17
  • 18
0
votes
1 answer

Creating complex array from real and imag arrays

I would like to create a 2D matrix of complex numbers. The matrix is available as two distinct pointers containing the real and imaginary parts (comes from MATLAB - MEX). I'm using the C++ interface. The closest thing I see in the API is a C…
miluz
  • 1,353
  • 3
  • 14
  • 22