|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
#include "../../../catch2/catch.hpp"#include "../../../../include/math/cuda/cudaPtr.hpp"#include "../../../../include/math/cuda/templateCublas.hpp"Go to the source code of this file.
Functions | |
| SCENARIO ("scaling a vector with cublas", "[math::cuda::templateCublas]") | |
| SCENARIO ("scaling and accumulating a vector with cublas", "[math::cuda::templateCublas]") | |
| SCENARIO ("multiplying two vectors element by element", "[math::cuda::templateCublas]") | |
| SCENARIO ("multiplying a vector by a matrix giving increments", "[math::cuda::templateCublas]") | |
| SCENARIO | ( | "multiplying a vector by a matrix giving increments" | , |
| "" | [math::cuda::templateCublas] | ||
| ) |
Scenario: multiplying a vector by a matrix Tests mx::cuda::cublasTgemv, as well as basic cudaPtr operations.
Definition at line 550 of file templateCublas_test.cpp.
References mx::cuda::cublasTgemv(), mx::cuda::cudaPtr< T >::download(), mx::cuda::cudaPtr< T >::initialize(), mx::cuda::cudaPtr< T >::resize(), and mx::cuda::cudaPtr< T >::upload().
| SCENARIO | ( | "multiplying two vectors element by element" | , |
| "" | [math::cuda::templateCublas] | ||
| ) |
Definition at line 335 of file templateCublas_test.cpp.
References mx::cuda::cudaPtr< T >::download(), mx::cuda::elementwiseXxY(), mx::cuda::cudaPtr< T >::resize(), and mx::cuda::cudaPtr< T >::upload().
| SCENARIO | ( | "scaling a vector with cublas" | , |
| "" | [math::cuda::templateCublas] | ||
| ) |
Definition at line 13 of file templateCublas_test.cpp.
References mx::cuda::cublasTscal(), mx::cuda::cudaPtr< T >::download(), mx::cuda::cudaPtr< T >::resize(), and mx::cuda::cudaPtr< T >::upload().
| SCENARIO | ( | "scaling and accumulating a vector with cublas" | , |
| "" | [math::cuda::templateCublas] | ||
| ) |
Definition at line 160 of file templateCublas_test.cpp.
References mx::cuda::cublasTaxpy(), mx::cuda::cudaPtr< T >::download(), mx::cuda::cudaPtr< T >::resize(), and mx::cuda::cudaPtr< T >::upload().