Skip to content

Commit d2ba7d2

Browse files
valgurmvieth
authored andcommitted
Remove an unused cufft.h include
1 parent 6b0fc48 commit d2ba7d2

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

cuda/common/include/pcl/cuda/cutil.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -786,14 +786,6 @@ extern "C" {
786786
__FILE__, __LINE__, cudaGetErrorString( err) ); \
787787
} }
788788

789-
# define CUFFT_SAFE_CALL( call) { \
790-
cufftResult err = call; \
791-
if( CUFFT_SUCCESS != err) { \
792-
fprintf(stderr, "CUFFT error in file '%s' in line %i.\n", \
793-
__FILE__, __LINE__); \
794-
exit(EXIT_FAILURE); \
795-
} }
796-
797789
# define CUT_SAFE_CALL( call) \
798790
if( CUTTrue != call) { \
799791
fprintf(stderr, "Cut error in file '%s' in line %i.\n", \

cuda/common/include/pcl/cuda/cutil_inline_runtime.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,11 @@
2525
#include <string.h>
2626
#include <stdlib.h>
2727

28-
#include <cufft.h>
29-
3028
// We define these calls here, so the user doesn't need to include __FILE__ and __LINE__
3129
// The advantage is the developers gets to use the inline function so they can debug
3230
#define cutilSafeCallNoSync(err) __cudaSafeCallNoSync(err, __FILE__, __LINE__)
3331
#define cutilSafeCall(err) __cudaSafeCall (err, __FILE__, __LINE__)
3432
#define cutilSafeThreadSync() __cudaSafeThreadSync(__FILE__, __LINE__)
35-
#define cufftSafeCall(err) __cufftSafeCall (err, __FILE__, __LINE__)
3633
#define cutilCheckError(err) __cutilCheckError (err, __FILE__, __LINE__)
3734
#define cutilCheckMsg(msg) __cutilGetLastError (msg, __FILE__, __LINE__)
3835
#define cutilCheckMsgAndSync(msg) __cutilGetLastErrorAndSync (msg, __FILE__, __LINE__)
@@ -274,15 +271,6 @@ inline void __cudaSafeThreadSync( const char *file, const int line )
274271
}
275272
}
276273

277-
inline void __cufftSafeCall( cufftResult err, const char *file, const int line )
278-
{
279-
if( CUFFT_SUCCESS != err) {
280-
FPRINTF((stderr, "%s(%i) : cufftSafeCall() CUFFT error.\n",
281-
file, line));
282-
exit(-1);
283-
}
284-
}
285-
286274
inline void __cutilCheckError( CUTBoolean err, const char *file, const int line )
287275
{
288276
if( CUTTrue != err) {

0 commit comments

Comments
 (0)