microsoft / microsoft/vscode-cpptools

HIP language support

Aperta
#7,995 5 commenti 16 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Feature Request Language Service
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Please support HIP as a C++ dialect based off of the existing CUDA support.

HIP is AMD's single-source GPGPU API, which is heavily influenced by CUDA, to extents that the two are nearly source compatible. Although not strictly related, but CMake 3.21 recently landed HIP language support, so the .cpp extension need not be overloaded anymore for HIP source code. HIP shares the same keywords and semantics as CUDA, without the <<<>>> operator and instead uses a macro for kernel launch, hipLaunchKernelGGL().

ps.: HIP also has a pure host-side implementation using C++17 with a touch of OpenMP under the name HIP-CPU. It is an invaluable tool to run device code on machines without compatible GPUs and to debug the code using ordinary CPU debugger. (Throwing structured exceptions in GPU code is fun.) In such cases, the builds would set source file language to CXX instead of HIP. It would be great if cpptools would function properly in both cases and pick up source file language based on CMake config. (IntelliSense workes flawlessly with Main.cpp and HIP-CPU. The editor however seems to pick up source language based on file extension. Now Main.hip is all white if not configured in settings.json, but even then include paths will not be picked up.)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia confrontando il supporto esistente per il linguaggio CUDA con la configurazione del linguaggio HIP di CMake 3.21. Traccia il modo in cui vengono selezionati il linguaggio sorgente, l’evidenziazione della sintassi e i percorsi di inclusione per i file configurati, quindi verifica che i file HIP e i file HIP-CPU configurati con CXX funzionino correttamente nell’editor.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cmake, cpp
Ambito
developer-experience, tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.