Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cuda/common/include/pcl/cuda/cutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -786,14 +786,6 @@ extern "C" {
__FILE__, __LINE__, cudaGetErrorString( err) ); \
} }

# define CUFFT_SAFE_CALL( call) { \
cufftResult err = call; \
if( CUFFT_SUCCESS != err) { \
fprintf(stderr, "CUFFT error in file '%s' in line %i.\n", \
__FILE__, __LINE__); \
exit(EXIT_FAILURE); \
} }

# define CUT_SAFE_CALL( call) \
if( CUTTrue != call) { \
fprintf(stderr, "Cut error in file '%s' in line %i.\n", \
Expand Down
12 changes: 0 additions & 12 deletions cuda/common/include/pcl/cuda/cutil_inline_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@
#include <string.h>
#include <stdlib.h>

#include <cufft.h>

// We define these calls here, so the user doesn't need to include __FILE__ and __LINE__
// The advantage is the developers gets to use the inline function so they can debug
#define cutilSafeCallNoSync(err) __cudaSafeCallNoSync(err, __FILE__, __LINE__)
#define cutilSafeCall(err) __cudaSafeCall (err, __FILE__, __LINE__)
#define cutilSafeThreadSync() __cudaSafeThreadSync(__FILE__, __LINE__)
#define cufftSafeCall(err) __cufftSafeCall (err, __FILE__, __LINE__)
#define cutilCheckError(err) __cutilCheckError (err, __FILE__, __LINE__)
#define cutilCheckMsg(msg) __cutilGetLastError (msg, __FILE__, __LINE__)
#define cutilCheckMsgAndSync(msg) __cutilGetLastErrorAndSync (msg, __FILE__, __LINE__)
Expand Down Expand Up @@ -274,15 +271,6 @@ inline void __cudaSafeThreadSync( const char *file, const int line )
}
}

inline void __cufftSafeCall( cufftResult err, const char *file, const int line )
{
if( CUFFT_SUCCESS != err) {
FPRINTF((stderr, "%s(%i) : cufftSafeCall() CUFFT error.\n",
file, line));
exit(-1);
}
}

inline void __cutilCheckError( CUTBoolean err, const char *file, const int line )
{
if( CUTTrue != err) {
Expand Down