microsoft / microsoft/vscode-cpptools

HIP language support

Offen
#7,995 5 Kommentare 16 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Feature Request Language Service
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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.)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die bestehende Unterstützung für die CUDA-Sprache mit der HIP-Sprachkonfiguration von CMake 3.21 zu vergleichen. Verfolge, wie Quellsprache, Syntaxhervorhebung und Include-Pfade für konfigurierte Dateien ausgewählt werden, und überprüfe anschließend, dass HIP-Dateien und CXX-konfigurierte HIP-CPU-Dateien im Editor korrekt funktionieren.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cmake, cpp
Bereich
developer-experience, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.