[Build][Docs] Improve build documentation

Aperta
#459 14 commenti 5 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cmake, cpp

Direzione di ricerca

Start with building_the_project.rst, the main build guide the issue asks to rewrite, and remove the Conan section and the duplicated hipSYCL/AdaptiveCpp instructions. The CMake files that set ENABLE_*_BACKEND and TARGET_DOMAINS are the other place to check. Done means the guide reflects current CMake options and backends can be enabled together, with compiler support errors added to CMake.

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

Descrizione

documentation

Summary

oneMKL can be difficult to build and use. The reasons for this are:

  • The build documentation is fragmented and at times outdated
  • The compiler ecosystem and compatibility is a little confusing

Problem statement

The current build documentation has the following problems:

  • It suggests oneMKL supports Conan. Conan is no longer supported since https://github.com/oneapi-src/oneMKL/discussions/267
    • Consequently, you have scroll some way to find the CMake instructions.
  • In most cases, building oneMKL backends is a case of setting -DENABLE_XYZ_BACKEND=ON. This isn't clearly communicated by the documentation, that makes building look far more complicated.
  • The docs suggests setting TARGET_DOMAINS even thought it is set automatically.
  • At times the documentation is worded in a way that suggests that backends cannot be enabled simultaneously, even thought I think they can.
  • In most cases, building a backend with hipSYCL (which is now AdaptiveCpp) is similar to building with clang++ or icpx, but we have duplication of information instead.

We also support a range of compilers.

  • I believe that some backends build with ICPX and Codeplay's plugins for Nvidia and AMD GPUs, although this is undocumented. We should consider supporting and documenting these.
  • In cases where a backend is dependent on a particular compiler, we should consider trying to generate useful CMake errors.

Preferred solution

  • Consider rewriting building_the_project.rst to address the above problems.
    • Some aspects (e.g. additional options for building with AdaptiveCpp) could potentially move to new files.
  • Generate more errors in CMake to reflect compiler support for different backends.
Lingua principale
C++
Stelle
777
Fork
183
Merge medio
2g 16h
PR unite (30g)
6

Preparare l'ambiente

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.

Altre issue di uxlfoundation/oneMath

Tutte le issue di uxlfoundation/oneMath

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.