SyTen

◆ setup() [1/2]

void syten::Cuda::setup ( )

Sets up CUDA to allow all existing devices and generates the associated cuBLAS handles for the calling thread.

Remarks
Subsequently-created OpenMP threads will have to create their own handles once required at some runtime cost. Take this into account when benchmarking. Unfortunately cuBLAS is (despite the documentation stating otherwise) not thread-safe.

References std::vector< T >::begin(), cuda_handle_error, std::vector< T >::end(), and std::iota().

Referenced by syten::Pyten::init_env().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: