1
edit
Changes
→Assignment 2
//Device array to hold the primes on the device
int *primes_d = new int[x];
//allocate device memmemory and initialize device memory
cudaMalloc((void**)&primes_d, x * sizeof(int));
cudaMemset(&primes_d,sizeof(int),x * sizeof(int);