[CMake] oneMKL version macros
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- cmake, cpp
- Ambito
- build-system
Direzione di ricerca
The version macros belong in the configured header template src/config.hpp.in, which CMake fills from PROJECT_VERSION and its major, minor and patch parts. Read how config.hpp is generated from that template and where the existing #cmakedefine lines sit. Done means the generated header defines ONEMKL_VERSION and its three numeric parts, and a small C++ file that includes it compiles. Confirm the project still uses this template before editing, since the issue is over two years old.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
There is currently no way to find the version of oneMKL interfaces from the headers. oneMKL interfaces should provide version macros.
This suggestion comes from a GROMACS PR - https://gitlab.com/gromacs/gromacs/-/merge_requests/4252#note_2000153975
Problem statement
The behaviour and features of oneMKL change depending on version. Whilst the version of oneMKL is discoverable from the CMake, it is not discoverable from source including oneMKL Interfaces. Consequently, it is difficult to enable or disable code according to version.
Preferred solution
@al42and suggests:
diff --git src/config.hpp.in src/config.hpp.in
index 5698abf..8c295d2 100644
--- src/config.hpp.in
+++ src/config.hpp.in
@@ -40,5 +40,9 @@
#cmakedefine BUILD_SHARED_LIBS
#cmakedefine REF_BLAS_LIBNAME "@REF_BLAS_LIBNAME@"
#cmakedefine REF_CBLAS_LIBNAME "@REF_CBLAS_LIBNAME@"
+#define ONEMKL_VERSION "@PROJECT_VERSION@"
+#define ONEMKL_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
+#define ONEMKL_VERSION_MINOR @PROJECT_VERSION_MINOR@
+#define ONEMKL_VERSION_PATCH @PROJECT_VERSION_PATCH@
This is (helpfully) different from the macros exported by Intel oneMKL.
- Lingua principale
- C++
- Stelle
- 777
- Fork
- 183
- Merge medio
- 2g 16h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di uxlfoundation/oneMath
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 39/100
uxlfoundation/oneMath#795 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
uxlfoundation/oneMath#789 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
uxlfoundation/oneMath#786 ·
I maintainer di solito rispondono entro 1 giorno
-
[DFT][rocFFT] Add regression tests for stride validation and rank handlingForse già presa @zjin-lcf l’ha presa 56 giorni fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
uxlfoundation/oneMath#771 ·
I maintainer di solito rispondono entro 1 giorno
-
Example code for SYCL generic BLAS and portFFT backendsForse già presa @zjin-lcf l’ha presa 106 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 22/100
uxlfoundation/oneMath#714 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di uxlfoundation/oneMath
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
raspberrypi/rpi-imager#1804 ·
-
difficulty: easy docs good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Ryan-Millard/Img2Num#842 ·
I maintainer di solito rispondono entro 12 giorni
-
Unit converter reads out of bounds when the saved UnitConverterPreferences setting is malformedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
microsoft/calculator#2532 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
bug difficulty:easy prio:normal
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
NatronGitHub/openfx-misc#411 ·
I maintainer di solito rispondono entro 1 giorno