195 questions
0
votes
0
answers
23
views
Proper treatment of intermediate af::arrays in C++? When can I inline? When must I eval?
In most C++ programming, there are clear rules on when I can inline a variable. What are those rules, in ArrayFire? Let me illustrate with an example:
This is how I would generally structure this ...
1
vote
1
answer
71
views
Does ArrayFire have a popcount or bitcount function?
I am trying to move away from OpenCL and CUDA into ArrayFire. One of my functions uses the GPU's popcount() to make pre-processing data easier. But I can't find it anywhere in the list of functions in ...
2
votes
1
answer
243
views
Arrayfire build has issue with OpenCL turned OFF
I'm getting an error with building arrayfire.
I wish to use Arrayfire purely with CUDA, yet the arrayfire build seems to require OpenCL, despite me setting the flag for OpenCL not to be built.
Build ...
1
vote
1
answer
425
views
Arrayfire CPP with CUDA "failed to open libnvrtc-builtins.so.12.2"
For some reason arrayfire isn't working with my nvidia GPU. I'm trying to do this with cmake.
I have the cuda toolkit correctly installed, and followed the linux linux install instructions found here ...
1
vote
0
answers
62
views
Failure to install "RcppArrayFire" package in R because of "This package has a configure script, It probably needs manual configuration..."
I'm trying to install the package "RcppArrayFire" in R v4.3.2.
After having gone round in circles following multiple attempts at various possible ways of installing a package in R, I'm ...
0
votes
1
answer
22
views
Column chaotic reorder in ArrayFire using CUDA or OpenCL backend
I have multiple arrays as separate fields, when I join them together, somehow an specific column gets switched with another column strangely.
All columns have proper data on their own, but shuffled ...
2
votes
2
answers
120
views
Making masks based on euclidean distance with pyopencl, arrayfire or another python opencl library
I am doing 2D or 3D binary masks around given coordinates and then identifying them as labels with scipy.ndimage.label.
Now, I have a cupy solution, a numpy solution. Cupy is fast, numpy is very slow, ...
1
vote
0
answers
230
views
Difficulties in installing ArrayFire
I installed the RcppArrayFire R package ( via https://github.com/daqana/rcpparrayfire ) and I am trying to run the following simple example:
#include <RcppArrayFire.h>
// [[Rcpp::depends(...
0
votes
0
answers
43
views
Issues installing RcppArrayFire on Linux [duplicate]
I am trying to install the C++ library ArrayFire: https://arrayfire.com/
There is an R package for doing this: https://github.com/daqana/rcpparrayfire
However, I follow the instructions and install ...
1
vote
1
answer
209
views
How to convert between C++ ArrayFire and C++ Eigen matrices?
I am new to Eigen and looking to learn ArrayFire for GPU acceleration. I would like to implement ArrayFire within my existing Eigen code rather than having to re-code all of my functions.
Is there a ...
1
vote
1
answer
81
views
How to use ArrayFire's Forge visualization in custom area within existing Qt window or DC (Device Context) instead of separate window?
In real world applications we don't want to use a separate window for some plot, is there a way to use a control's DC or a way to use Qt QML as render target for the ArrayFire's Forge library?
1
vote
0
answers
120
views
Why do I get linker errors when building ArrayFire examples
I am using the ArrayFire binaries provided by my Linux distro (Artix Linux, i.e. Arch Linux without Systemd). I want to build the examples, and I get linker errors.
The library is installed here:
> ...
1
vote
0
answers
114
views
ArrayFire: Why doesn't convolution followed by deconvolution return the original image (not even close)
I'm trying to perform a convolution and deconvolution using ArrayFire in C++ for an image deblurring application. For testing purposes I have a 5x5 image and a 3x3 kernel. I convolve the image using ...
1
vote
0
answers
72
views
Matlab mldivide and arrayfire solve
I am trying to port some Matlab code to c++ using arrayfire. In one place the Matlab code is like:
tmp = (R\v0);
where R is a 9x9 complex double and v0 is a 9x1 complex double.
in my arrayfire the ...
3
votes
1
answer
212
views
Arrayfire C++ sparse matrix multiplication causes access violation
I am trying to work with sparse matrices in arrayfire but I am getting an access violation somewhere inside array fire dll. I used several examples but always with the same result. I can see the error ...