Changes

Jump to: navigation, search

DPS915/M-N-M

32 bytes added, 12:19, 7 March 2013
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);
1
edit

Navigation menu