Commit 42210bc0b419ff0139165b7377b49a7e49b95e0e
1 parent
a69fee9d
Removed using namespace std from error.h as it was causing compilation errors in unix
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
stim/cuda/cudatools/error.h
@@ -3,7 +3,6 @@ | @@ -3,7 +3,6 @@ | ||
3 | 3 | ||
4 | #include <stdio.h> | 4 | #include <stdio.h> |
5 | #include <iostream> | 5 | #include <iostream> |
6 | -using namespace std; | ||
7 | #include "cuda_runtime.h" | 6 | #include "cuda_runtime.h" |
8 | #include "device_launch_parameters.h" | 7 | #include "device_launch_parameters.h" |
9 | #include "cufft.h" | 8 | #include "cufft.h" |
@@ -23,19 +22,19 @@ static void cufftHandleError( cufftResult err, const char*file, int line ) | @@ -23,19 +22,19 @@ static void cufftHandleError( cufftResult err, const char*file, int line ) | ||
23 | if (err != CUFFT_SUCCESS) | 22 | if (err != CUFFT_SUCCESS) |
24 | { | 23 | { |
25 | if(err == CUFFT_INVALID_PLAN) | 24 | if(err == CUFFT_INVALID_PLAN) |
26 | - cout<<"The plan parameter is not a valid handle."<<endl; | 25 | + std::cout<<"The plan parameter is not a valid handle."<<std::endl; |
27 | else if(err == CUFFT_ALLOC_FAILED) | 26 | else if(err == CUFFT_ALLOC_FAILED) |
28 | - cout<<"Allocation failed."<<endl; | 27 | + std::cout<<"Allocation failed."<<std::endl; |
29 | else if(err == CUFFT_INVALID_VALUE) | 28 | else if(err == CUFFT_INVALID_VALUE) |
30 | - cout<<"At least one of the parameters idata, odata, and direction is not valid."<<endl; | 29 | + std::cout<<"At least one of the parameters idata, odata, and direction is not valid."<<std::endl; |
31 | else if(err == CUFFT_INTERNAL_ERROR) | 30 | else if(err == CUFFT_INTERNAL_ERROR) |
32 | - cout<<"An internal driver error was detected."<<endl; | 31 | + std::cout<<"An internal driver error was detected."<<std::endl; |
33 | else if(err == CUFFT_EXEC_FAILED) | 32 | else if(err == CUFFT_EXEC_FAILED) |
34 | - cout<<"CUFFT failed to execute the transform on the GPU."<<endl; | 33 | + std::cout<<"CUFFT failed to execute the transform on the GPU."<<std::endl; |
35 | else if(err == CUFFT_SETUP_FAILED) | 34 | else if(err == CUFFT_SETUP_FAILED) |
36 | - cout<<"The CUFFT library failed to initialize."<<endl; | 35 | + std::cout<<"The CUFFT library failed to initialize."<<std::endl; |
37 | else | 36 | else |
38 | - cout<<"Unknown error: "<<err<<endl; | 37 | + std::cout<<"Unknown error: "<<err<<std::endl; |
39 | 38 | ||
40 | } | 39 | } |
41 | } | 40 | } |