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
0 answers

FFT in Arrayfire is slower than in MATLAB

I have a loop in which I have an FFT and an inverse FFT. Since the vector of the k+1-th iteration I apply the FFT on depends on the data of the k-th iteration, I cannot use a gfor loop to parallelize the program. Therefore, I wanted to speed up the…
Zoltán Csáti
  • 679
  • 5
  • 17
0
votes
0 answers

What are the frequencies of each element of fft output in ArrayFire?

I am trying to compute derivatives via fft on the GPU using ArrayFire but i am not getting expected results. What is the frequency of each element in the output of ArrayFire's fft, fft2, and fft3 functions (for both even and odd sized inputs) ? For…
cdeepakroy
  • 2,203
  • 3
  • 19
  • 23
0
votes
0 answers

arrayfire evaluation of equations running really slowly

I have been working on a project to simulate biologically inspired neural networks using arrayfire. I got to the point of doing some timing tests and was disappointed with the results I was getting. I decided to try and go with one of the fastest,…
dcofer
  • 303
  • 2
  • 10
0
votes
1 answer

Using shared memory in ArrayFire

Does anyone know how to declare that an array of data in ArrayFire should be stored in shared memory instead of global memory? Is this possible? I have a small set of data that needs to be randomly accessible by all threads. It's a constant look-up…
dcofer
  • 303
  • 2
  • 10
0
votes
1 answer

Does convolution in ArrayFire use FFT?

I am looking forward to speed up convolution with derivative of gaussian kernels (upto order 2/3) on large medical images (512 x 512 x 1000 double) in one of our open-source toolkits. We currently do this convolution via FFT. After being suggested…
cdeepakroy
  • 2,203
  • 3
  • 19
  • 23
0
votes
1 answer

run arrayfire on ec2 gpu

Recent days we are trying to use Amazon GPU instances.But their graphic card NVIDIA GRID K520 supports only cuda 5.5. From installation documentation of arrayfire minimum version of cuda is 6.5.Need help to compile arrayfire with cuda 5.5.
user10333
  • 331
  • 1
  • 9
0
votes
1 answer

Fortran/Arrayfire Dimensioning Issue

I am currently using Arrayfire to speed up a Fortran CFD solver. The way we implement Fortran arrays means that a 2 dimensional Fortran array is represented by (N,M,1) rather than just (N,M), allowing allocatable arrays to deal with either 2 or 3…
HM13
  • 13
  • 3
0
votes
1 answer

arrayfire flip throws exception

I'm try to flip a matrix of size [249 1 50 20], this is the code: array flipped_delta = flip(delta, 0); I get the following exception: Unhandled exception at 0x00000001801FCA92 (libafcu.dll) in r.exe: 0xC0000094: Integer division by zero. I try to…
Ran
  • 4,117
  • 4
  • 44
  • 70
0
votes
1 answer

Compile error due to syntax error in header file

I have a program that relies on several include files. When I define includes in the order shown below the program compiles fine. #include #include "opencv2/cvconfig.h" #include "opencv2/core/core.hpp" #include…
Alexey
  • 5,898
  • 9
  • 44
  • 81
0
votes
1 answer

Trouble with Arrayfire: exited with code -1073741701

I installed CUDA 5.0 and Arrayfire 1.9, and when I compile the example files, they work perfectly. If I try to set up my own project in a different folder, I get a runtime error when I try to use anything related to the af namespace. I get the same…
Jan M.
  • 489
  • 2
  • 5
  • 21
0
votes
0 answers

how the gfor structure allocate cuda thread?

Who can tell me how the gfor structure allocate CUDA threads? As we know, in Arrayfire, We can use gfor for parallel computation. But, the threads of CUDA are limited, so I want to know,how can I improve my Arrayfire code, Should I redesign the gfor…
pbovip
  • 9
  • 1
0
votes
1 answer

ArrayFire out of memory doing convolution on NVIDIA Fermi?

I'm trying to use ArrayFire to perform a convolution on a 9000x9000 pixel 3-channel image, which is ~75MB. My GPU is an NVIDIA GTX480 with 1536MB of RAM. I would expect ArrayFire to use 75MB for the input image and roughly 75MB for the output image.…
solvingPuzzles
  • 8,541
  • 16
  • 69
  • 112
-1
votes
1 answer

arrayfire, pointers, and c++

I have been trying to procedurally generate an array of arrayfire arrays. When dealing with other objects in the past I could either so something like: className * listName = (className*)malloc(numOfObjects*sizeOf(className)) or className **…
-1
votes
1 answer

Best Way to order ArrayFire Array with Index-Array

What's the fastest way to order an Arrayfire array with an Index-Array? This is what i mean with normal arrays: std::array A = {3,2,1}; std::array indices = {2,1,3}; std::array tempA = A; for (int i = 0; i < 3;…
Imma
  • 21
  • 5
-1
votes
1 answer

Casting of `arrayfire::Array`

I'm using the arrayfire crate to open an image with af::load_image. This gives me a f32 array that I can do some processing on. After I am done, I would like to save it as an u8 image using af::save_image: extern crate arrayfire as af; fn main() { …
Ronny
  • 454
  • 4
  • 15
1 2 3
12
13