fnrizzi / kokkos-kernels

Kokkos C++ Performance Portability Programming EcoSystem: Math Kernels - Provides BLAS, Sparse BLAS and Graph Kernels
Other
0 stars 0 forks source link

Support std::complex #27

Open mzuzek opened 3 years ago

mzuzek commented 3 years ago

Follows #9 (part): tests with complex numbers to verify C/H modes.

std::complex seems not to be supported by Kokkos::atomic_add() (several instances in _sparse/impl/KokkosSparse_spmv_impl_blockcrs.hpp) because of missing copy-constructor with volatile modifier (e.g. only Kokkos::complex is used to test Kokkos atomic ops in _unittest/TestAtomics.hpp).