acts-project / acts-project/vecmem

SYCL Symbol Visibility Issue on Windows, main branch (2024.08.03.)

Ouverte
#289 1 commentaire 0 réactions 1 personne assignée Réclamée par @krasznaa Voir sur GitHub
bug
Langage dominant
C++
Étoiles
20
Forks
22
Merge moyen
1 j 14 h
PR mergées (30 j)
3

Description

While doing some tests on Windows with the latest version of the code, I ran into the following warnings during the build:

```
...
[ 70%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/memory_resource_base.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 71%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/device_memory_resource.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 71%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/host_memory_resource.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 71%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/shared_memory_resource.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 72%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/copy.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 72%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/async_copy.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 73%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/queue_wrapper.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 73%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/get_queue.sycl.obj
icx-cl: warning: unknown argument ignored in clang-cl: '-fvisibility-ms-compat' [-Wunknown-argument]
[ 73%] Linking SYCL shared library ..\bin\vecmem_sycl.dll
...
```

So, #282's setup is not working perfectly with this combination of compilers. (MSVC + oneAPI) The failure is not fatal, but it would be nice to get rid of these warnings... 🤔

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by tracing the CMake configuration that supplies compiler flags to the SYCL target, using the Windows MSVC plus oneAPI build described in the report. Reproduce the build and check the affected SYCL compilation steps. Done means the unsupported -fvisibility-ms-compat warning is gone on this compiler combination without breaking other builds.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cmake, cpp
Domaine
build-system
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.