3 ms·
Initially OpenCL and CUDA were competitors. You had choice of C (OpenCL) and limited support of C++ (CUDA). C++ especially in HPC context is way easier (templat
by llukas 7y ago
Initially OpenCL and CUDA were competitors. You had choice of C (OpenCL) and limited support of C++ (CUDA). C++ especially in HPC context is way easier (templates!) as properly organized C++ codebase doesn't have problem with:
"Optimizations that one applies on different hardware make code look completely different."
Unless you got C program where this statement is true.
- h91wka 7y ago> as properly organized C++ codebase doesn't have problem I'm still having hard time to believe that kernels optimized for SIMD architecture will be useful on CPU and vice versa. And OpenCL people advertised this, if memory serves me well.
- llukas 7y agoIf you got SIMD it means you had to solve most of problems that you'd have when going for AVX implementation.