Просмотр исходного кода

Removed the unused 'cuda_init' function.

This function was not used anywhere in the code.
Steven Engler 8 лет назад
Родитель
Сommit
6bfb884002
2 измененных файлов с 0 добавлено и 12 удалено
  1. 0 2
      cudadl.h
  2. 0 10
      parrhoasm.cu

+ 0 - 2
cudadl.h

@@ -25,8 +25,6 @@
 
 
 NTL_CLIENT
 NTL_CLIENT
 
 
-int cuda_init(int deviceid);
-
 void cuda_dl(const ZZ_p &base, const ZZ_p &target, const ZZ &order,
 void cuda_dl(const ZZ_p &base, const ZZ_p &target, const ZZ &order,
 		const ZZ &modulus, unsigned int dpfreq, void *data);
 		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
 NTL_CLIENT
 
 
-int cuda_init(int deviceid)
-{
-    cudaError_t cudares = cudaSetDevice(deviceid);
-    if (cudares != cudaSuccess) {
-	return -1;
-    }
-
-    return 0;
-}
-
 #ifdef CHECK_RESULTS
 #ifdef CHECK_RESULTS
 static void dump(const char *prefix, const unsigned int *di, size_t words)
 static void dump(const char *prefix, const unsigned int *di, size_t words)
 {
 {