setup

Hi
I have problem for setup
Is there anybody help me?

Your title and problem description are useless to allow us to help you.

Exactly what problem are you running into?

my code is
#include
#include
#include <stdlib.h>
#include <math.h>
#include <cuda_runtime.h>
#include
#include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
#define N 512
#define M 512
#define alpha 12435
#define beta 4546
global void syr2k_kernel(float A, float B, float C)
{
int j = blockIdx.x
blockDim.x + threadIdx.x;
int i = blockIdx.y
blockDim.y + threadIdx.y;
if((i<N) && (j<N))
{
C[i*N+j] = beta;
int k;
for (k = 0; k < M; k++)
{
C[i*N+j] +=alpha
A[i*M+k]B[jM+k]+alpha
B[i*M+k]A[jM+k];
}

}

}

int main(int argc, char *argv)
{

clock_t StartTimer,StopTimer;
int size = N*N*sizeof(float);
float *dA,*dB,*dC;
cudaMalloc(&dA,size);
cudaMalloc(&dB,size);
cudaMalloc(&dC,size);
dim3 block(16,16);

dim3 grid((size_t)ceil(((float)N)/((float)block.x)),(size_t)ceil(((float)N)/((float)block.y)));
cout << “Matrix size is [” << N << “][” << N <<“]”<< endl;
float A=new float[NN];
float B=new float[NN];
float C=new float[NN];
for (int j=0; j<N; j++)
{
for (int i=0; i<N; i++)
{
A[jN+i]=2.0;
B[j
N+i]=2.0;
C[j*N+i]=2.0;
}
}

		StartTimer = clock();
		cudaMemcpy(dA,A,size,cudaMemcpyHostToDevice);
		cudaMemcpy(dB,B,size,cudaMemcpyHostToDevice);
		cudaMemcpy(dC,C,size,cudaMemcpyHostToDevice);
		syr2k_kernel<<<grid,block>>>(dA,dB,dC);
		float *CDevice=new float[N*N];
		cudaMemcpy(CDevice,dC,size,cudaMemcpyDeviceToHost);
		StopTimer = clock();
		for(int i=0;i<N;i++){
			for(int j=0;j<N;j++){
				printf("%f \n",CDevice[i*N+j]);
			}
		}
		double TimeGPU=(double)(StopTimer - StartTimer) / CLOCKS_PER_SEC;
		printf("\nGPU time = %f ms\n ",TimeGPU);
		getch();

}
it just worked for matrix size <1024
when i use 1024 or 2048 my screen for 1 second gets black and i got this notification from my lap top
"display driver sopported responding and has recovered display driver nvidia windows kernel mode driver, version 320.57 stopped responding and has successfuly recovered

you are hitting a windows WDDM TDR timeout. Google that.