Преглед изворни кода

Removed the unused 'cuda_init' function.

This function was not used anywhere in the code.
Steven Engler пре 8 година
родитељ
комит
6bfb884002
2 измењених фајлова са 0 додато и 12 уклоњено
  1. 0 2
      cudadl.h
  2. 0 10
      parrhoasm.cu

+ 0 - 2
cudadl.h

@@ -25,8 +25,6 @@
 
 NTL_CLIENT
 
-int cuda_init(int deviceid);
-
 void cuda_dl(const ZZ_p &base, const ZZ_p &target, const ZZ &order,
 		const ZZ &modulus, unsigned int dpfreq, void *data);
 

+ 0 - 10
parrhoasm.cu

@@ -61,16 +61,6 @@ __device__ __constant__ unsigned int c_y[SIZE_Y], c_g[SIZE_G];
 
 NTL_CLIENT
 
-int cuda_init(int deviceid)
-{
-    cudaError_t cudares = cudaSetDevice(deviceid);
-    if (cudares != cudaSuccess) {
-	return -1;
-    }
-
-    return 0;
-}
-
 #ifdef CHECK_RESULTS
 static void dump(const char *prefix, const unsigned int *di, size_t words)
 {