// reorder to dimansions that make sense
all_ref_cels = reorder(temp_hold, 3, 1, 0, 2);
}
it work fine on OpenCL runtime.
However for CUDA runtime I get the following error:
rrayFire Exception (Internal error:998):
In function void cuda::Enqueuer::operator()(void*, const cuda::EnqueueArgs&, Args ...) [with Args = {cuda::Param<float>, cuda::CParam<char>, cuda::CParam<float>, float, int, int}]
In file src/backend/cuda/Kernel.hpp:31
CU Error CUDA_ERROR_INVALID_VALUE(1): invalid argument
0# 0x00007F7C5231D604 in /opt/arrayfire/lib64/libafcuda.so.3
1# 0x00007F7C5231DC79 in /opt/arrayfire/lib64/libafcuda.so.3
2# af_replace_scalar in /opt/arrayfire/lib64/libafcuda.so.3
3# af::replace(af::array&, af::array const&, double const&) in /opt/arrayfire/lib64/libafcuda.so.3
4# OS_CFAR(af::array&, af::array&, int, int, int, int, int) in ./GMTI_Processor_opencl
5# main in ./GMTI_Processor_opencl
6# __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
7# _start in ./GMTI_Processor_opencl
In function void af::replace(af::array&, const af::array&, const double&)
In file src/api/cpp/data.cpp:313
terminate called after throwing an instance of 'af::exception'
what(): ArrayFire Exception (Internal error:998):
In function void cuda::Enqueuer::operator()(void*, const cuda::EnqueueArgs&, Args ...) [with Args = {cuda::Param<float>, cuda::CParam<char>, cuda::CParam<float>, float, int, int}]
In file src/backend/cuda/Kernel.hpp:31
CU Error CUDA_ERROR_INVALID_VALUE(1): invalid argument
0# 0x00007F7C5231D604 in /opt/arrayfire/lib64/libafcuda.so.3
1# 0x00007F7C5231DC79 in /opt/arrayfire/lib64/libafcuda.so.3
2# af_replace_scalar in /opt/arrayfire/lib64/libafcuda.so.3
3# af::replace(af::array&, af::array const&, double const&) in /opt/arrayfire/lib64/libafcuda.so.3
4# OS_CFAR(af::array&, af::array&, int, int, int, int, int) in ./GMTI_Processor_opencl
5# main in ./GMTI_Processor_opencl
6# __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
7# _start in ./GMTI_Processor_opencl
In function void af::replace(af::array&, const af::array&, const double&)
In file src/api/cpp/data.cpp:313
Aborted (core dumped)
May you please help resolve the issue?