Open main menu

CDOT Wiki β

Changes

BetaT

4 bytes added, 23:54, 11 April 2017
Windows Display Driver Crash for problem size > 2000 & 2000
}
===== OPTIMIZED CALCULATE WAVE KERNEL =====
The code below has been altered to remove the (j) variable and combined the two (if) statements into one, so that we can reduce (Thread Divergence), as well as move the (- c*dt/dx* ) recurring instruction set, and place it into a variable called total, so that each thread is NOT performing the same operation which causes a decrease in performance.
}
===== OPTIMIZED INITIALIZATION KERNEK =====
I removed the variable (j), removed the syncthreads() which were not needed, I also removed the function running on the CPU that initializes all indexes int he arrays to 0, and moved it into the GPU below.
212
edits