revert cuda compil flags and init code to initial version
This commit is contained in:
@@ -166,7 +166,7 @@ if (CUDA_FOUND)
|
|||||||
add_definitions("-L/usr/local/cuda/lib64")
|
add_definitions("-L/usr/local/cuda/lib64")
|
||||||
|
|
||||||
SET(CUDA_NVCC_FLAGS
|
SET(CUDA_NVCC_FLAGS
|
||||||
"${CUDA_NVCC_FLAGS};--gpu-architecture=compute_60")
|
"${CUDA_NVCC_FLAGS};-arch=sm_60;")
|
||||||
|
|
||||||
# Disable warnings for CUDA
|
# Disable warnings for CUDA
|
||||||
SET(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};-lpthread;-w;-O3;--default-stream;per-thread;-I/usr/local/cuda/inc;-L/usr/local/cuda/lib -lcutil;-rdc=true;-lcudadevrt")
|
SET(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS};-lpthread;-w;-O3;--default-stream;per-thread;-I/usr/local/cuda/inc;-L/usr/local/cuda/lib -lcutil;-rdc=true;-lcudadevrt")
|
||||||
|
|||||||
@@ -489,7 +489,7 @@ using namespace std ;
|
|||||||
/* from here: entry points in decoder shared lib */
|
/* from here: entry points in decoder shared lib */
|
||||||
extern "C"
|
extern "C"
|
||||||
int ldpc_autoinit(void) { // called by the library loader
|
int ldpc_autoinit(void) { // called by the library loader
|
||||||
int devices = 0;
|
/*int devices = 0;
|
||||||
|
|
||||||
cudaError_t err = cudaGetDeviceCount(&devices);
|
cudaError_t err = cudaGetDeviceCount(&devices);
|
||||||
AssertFatal(devices>0,"\nNo cuda GPU found\n\n");
|
AssertFatal(devices>0,"\nNo cuda GPU found\n\n");
|
||||||
@@ -519,6 +519,7 @@ int devices = 0;
|
|||||||
wcout << " Max grid dimensions: [ " << props.maxGridSize[0] << ", " << props.maxGridSize[1] << ", " << props.maxGridSize[2] << " ]" << endl;
|
wcout << " Max grid dimensions: [ " << props.maxGridSize[0] << ", " << props.maxGridSize[1] << ", " << props.maxGridSize[2] << " ]" << endl;
|
||||||
wcout << endl;
|
wcout << endl;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
warmup_for_GPU();
|
warmup_for_GPU();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user