This function was not used anywhere in the code.
@@ -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);
@@ -61,16 +61,6 @@ __device__ __constant__ unsigned int c_y[SIZE_Y], c_g[SIZE_G];
-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)
{