Deep Learning, Machine Learning, Gpu, Cuda, AI.
// Wait until all CUDA threads are executed cudaDeviceSynchronize(); // Copy vector C from device to host cudaMemcpy(C, d_C, N * sizeof(float), cudaMemcpyDeviceToHost); // Free device memory cudaFree(d_A); cudaFree(d_B); cudaFree(d_C); } Performance comparison Below a comparison of CPU and GPU