Skip to content
Snippets Groups Projects
Commit eb23a501 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed unused method Cuda::getDeviceId

There is still CudaDeviceInfo::getActiveDevice.
parent f77a6d82
No related branches found
No related tags found
No related merge requests found
......@@ -36,15 +36,6 @@ bool Cuda::setup( const tnlParameterContainer& parameters,
}
*/
int Cuda::getDeviceId()
{
int id( 0 );
#ifdef HAVE_CUDA
cudaGetDevice( &id );
#endif
return id;
}
bool Cuda::checkDevice( const char* file_name, int line, cudaError error )
{
if( error == cudaSuccess )
......
......@@ -49,8 +49,6 @@ class Cuda
static inline constexpr int getGPUTransferBufferSize();
#ifdef HAVE_CUDA
static int getDeviceId();
template< typename Index >
__device__ static Index getGlobalThreadIdx( const Index gridIdx = 0 );
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment