All pastes #2057085 Raw Edit

Anonymous

public c v1 · immutable
#2057085 ·published 2011-05-11 22:43 UTC
rendered paste body
void RunKernel(int N){	// kernel futtatasa N-szer	for(int i = 0; i < N; i++) {		dim3 grid((NX*NY-1) / BlockN+1, (NX*NY-1) / BlockN+1);		dim3 block(BlockN, BlockN);		LepettNullazKernel<<<grid, block>>>(deviceLEPETT);		SzimulacioKernel1<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel2<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel3<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel4<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel5<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel6<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel7<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel8<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();		SzimulacioKernel9<<<grid, block>>>(deviceELETTER, deviceELETKOR, deviceEHSEG, deviceSZAPOR, deviceLEPETT);		cudaThreadSynchronize();	}}