nnlib
GPU-accelerated, C/C++ neural network library.
Functions
verify.cuh File Reference

Header file declaring methods used for verifying the existence of a CUDA runtime. More...

#include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>

Functions

bool isCudaAvailable ()
 Check if CUDA is available. More...
 
void showCudaInfo ()
 Show information about CUDA and the available GPU(s).
 

Detailed Description

Header file declaring methods used for verifying the existence of a CUDA runtime.

Author
Jan Warchocki
Date
06 March 2022

Function Documentation

◆ isCudaAvailable()

bool isCudaAvailable ( )

Check if CUDA is available.

The method is implemented twice depending on if CUDA is defined. If it is, then the method returns true, otherwise it returns false.

Returns
True if CUDA is available, false otherwise.