GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
src/gcvl/cuda/cudautils.h File Reference
#include <cuda_runtime.h>
#include <string>
#include <iostream>
#include <vector>

Go to the source code of this file.

Classes

struct  sSMtoCores
class  CUDA_device
class  CUDA_devices_list
class  CUDA_Array< T >

Defines

#define CUDA_Test_Success(err, fct_name)

Functions

int SMVer2CU (int major, int minor)
 Obtains the estimated number of cores per SM.

Define Documentation

#define CUDA_Test_Success (   err,
  fct_name 
)
Value:
if ((err) != cudaSuccess)                                           \
{                                                                   \
    std::cout                                                        \
        << "ERROR calling " << fct_name << "() ("                   \
        << __FILE__ << " line " << __LINE__ << "): "                \
        << CUDA_Error_to_String(err) << "\n" << std::flush;         \
    abort();                                                        \
}

Function Documentation

int SMVer2CU ( int  major,
int  minor 
) [inline]

Obtains the estimated number of cores per SM.

Parameters:
majormajor architecture version number.
minorminor architecture version number.
Returns:
number of compute units per SM.
 All Classes Namespaces Files Functions Variables Defines