3 ms·
> does not run on the GPU both Cuda and the Metal shader language are C++, so is OpenCL since 2.0 (https://www.khronos.org/opencl/ https://www.khronos.org/open
by jcelerier 3y ago
> does not run on the GPU
both Cuda and the Metal shader language are C++, so is OpenCL since 2.0 (https://www.khronos.org/opencl/ https://www.khronos.org/opencl/), so is AMD ROCm's HIP (https://github.com/ROCm-Developer-Tools/HIP https://github.com/ROCm-Developer-Tools/HIP), so is SYCL (https://www.khronos.org/sycl/ https://www.khronos.org/sycl/)? C++ is pretty much the language that runs most on GPUs.
> no vector instructions,
There's a thousand different possibilities for SIMD in C++, from #pragma omp simd, to libs such as std::experimental::simd (https://en.cppreference.com/w/cpp/experimental/simd/simd https://en.cppreference.com/w/cpp/experimental/simd/simd), Eve (https://github.com/jfalcou/eve https://github.com/jfalcou/eve), Highway (https://github.com/google/highway https://github.com/google/highway), Vc (https://github.com/VcDevel/Vc https://github.com/VcDevel/Vc)...