mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
templateCublas_test.cpp File Reference

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]")
 

Function Documentation

◆ SCENARIO() [1/4]

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 534 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() [2/4]

SCENARIO ( "multiplying two vectors element by element"  ,
""  [math::cuda::templateCublas] 
)

Scenario: multiplying two vectors element by element Tests mx::cuda::elementwiseXxY, as well as basic cudaPtr operations.

Definition at line 324 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() [3/4]

SCENARIO ( "scaling a vector with cublas"  ,
""  [math::cuda::templateCublas] 
)

Scenario: scaling a vector with cublas Tests cublasTscal, as well as basic cudaPtr operations.

Definition at line 14 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() [4/4]

SCENARIO ( "scaling and accumulating a vector with cublas"  ,
""  [math::cuda::templateCublas] 
)

Scenario: scaling and accumulating a vector with cublas Tests cublasTaxpy, as well as basic cudaPtr operations.

Definition at line 157 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().