Dade wrote: ↑Mon Nov 18, 2019 7:08 pm
Now let's hope AMD understand it is the only possible option to replace CUDA ... don't hold your breath
Intel is focused too much on their hardware (cpu, gpu, fpga).
Please consider AMD ROCm, HIP.
HIP: Heterogeneous-Computing Interface for Portability¶
What is Heterogeneous-Computing Interface for Portability (HIP)? It’s a C++ dialect designed to ease conversion of Cuda applications to portable C++ code. It provides a C-style API and a C++ kernel language. The C++ interface can use templates and classes across the host/kernel boundary.
The Hipify tool automates much of the conversion work by performing a source-to-source transformation from Cuda to HIP. HIP code can run on AMD hardware (through the HCC compiler) or Nvidia hardware (through the NVCC compiler) with no performance loss compared with the original Cuda code.
Programmers familiar with other GPGPU languages will find HIP very easy to learn and use. AMD platforms implement this language using the HC dialect described above, providing similar low-level control over the machine.
When to Use HIP
Use HIP when converting Cuda applications to portable C++ and for new projects that require portability between AMD and Nvidia. HIP provides a C++ development language and access to the best development tools on both platforms.
OpenCL™: Open Compute Language
What is OpenCL? It’s a framework for developing programs that can execute across a wide variety of heterogeneous platforms. AMD, Intel and Nvidia GPUs support version 1.2 of the specification, as do x86 CPUs and other devices (including FPGAs and DSPs). OpenCL provides a C run-time API and C99-based kernel language.
Wrap-Up
From a high-level perspective, ROCm delivers a rich set of tools that allow you to choose the best language for your application.
* HCC (Heterogeneous Compute Compiler) supports HC dialects
* HIP is a run-time library that layers on top of HCC (for AMD ROCm platforms; for Nvidia, it uses the NVCC compiler)
* The following will soon offer native compiler support for the GCN ISA:
* OpenCL 1.2+
* Anaconda (Python) with Numba
*
All are open-source projects, so you can employ a fully open stack from the language down to the metal. AMD is committed to providing an open ecosystem that gives developers the ability to choose; we are excited about innovating quickly using open source and about interacting closely with our developer community. More to come soon!
https://rocm-documentation.readthedocs. ... ortability