Set the threshold used by the specified function to determine if the NVIDIA CUDA Toolkit algorithm will be used.
#include <imsls.h>
int imsls_cuda_set (Imsls_cuda cuda_name, int threshold)
Imsls_cuda cuda_name
(Input)
An enumerator which specifies the IMSL function for which the
threshold will be set. cuda_name
must be one of the values defined in Table
15.1.
int threshold
(Input)
The threshold value which determines if the NVIDIA CUDA
Toolkit algorithm will be used. A value of zero ensures that the IMSL
version of the function will always be used. If the problem size is greater than
or equal to threshold, the NVIDIA Toolkit algorithm will be used.
A return value of 0 indicates the threshold was set successfully. A return value of 1 indicates the threshold was not set successfully.
#include <imsls.h>
int
imsls_cuda_set (Imsls_cuda
cuda_name, int
threshold,
IMSLS_SET_ALL,
0)
IMSLS_SET_ALL
(Input)
Sets the threshold of all IMSL/NVIDIA implemented functions.
This routine sets the threshold value for a specified function.
Refer to imsls_cuda_get for the document example.
IMSLS_CUDA_ENUM_NAME |
The argument specified for “cuda_name” = # is not valid. |
IMSLS_CUDA_NOT_IMPLEMENTED |
The specified function name does not have a CUDA implementation. |
IMSLS_CUDA_SET_ERROR |
Invalid argument. This argument must be greater than or equal to 0. |
IMSLS_CUDA_NOT_AVAIL |
The CUDA Toolkit algorithms are not implemented using this version of the library. Use the CUDA link environment variables to leverage the CUDA Toolkit algorithms. |