Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : enable SYCL when TRACCC_BUILD_SYCL is set #104

Conversation

SylvainJoube
Copy link
Contributor

VecMem refuses to build when enable_language(SYCL) is set.

I tested with two versions of DPC++ on my laptop :

  • Intel(R) oneAPI DPC++/C++ Compiler 2021.4.0 (2021.4.0.20210924)
  • Intel(R) oneAPI DPC++ Compiler 2021.1 (2020.10.0.1113)

What I did :

  • clone the repo, checkout on this branch (or just add enable_language(SYCL) in the root CMakeLists.txt)
  • initialize the submodules : git submodule update --init
  • and run the following command:
mkdir build && \
cmake \
-D CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH:/usr/local" \
-D CMAKE_CXX_COMPILER=dpcpp \
-D CMAKE_SYCL_COMPILER=/home/sylvain/intel/oneapi/compiler/2021.4.0/linux/bin/dpcpp \
-D CMAKE_SYCL_COMPILER_ENV_VAR=/home/sylvain/intel/oneapi/setvars.sh \
TRACCC_BUILD_SYCL=On -S . -B build && \
cd build  && \
make && \
ctest

Here is the full error message :

Scanning dependencies of target vecmem_core
[ 78%] Building CXX object _deps/vecmem-build/core/CMakeFiles/vecmem_core.dir/src/memory/allocator.cpp.o
[ 78%] Building CXX object _deps/vecmem-build/core/CMakeFiles/vecmem_core.dir/src/memory/deallocator.cpp.o
[ 79%] Building CXX object _deps/vecmem-build/core/CMakeFiles/vecmem_core.dir/src/memory/host_memory_resource.cpp.o
[ 80%] Building CXX object _deps/vecmem-build/core/CMakeFiles/vecmem_core.dir/src/memory/binary_page_memory_resource.cpp.o
[ 80%] Building CXX object _deps/vecmem-build/core/CMakeFiles/vecmem_core.dir/src/memory/contiguous_memory_resource.cpp.o
[ 81%] Building CXX object _deps/vecmem-build/core/CMakeFiles/vecmem_core.dir/src/utils/copy.cpp.o
[ 82%] Linking CXX shared library ../../../lib/libvecmem_core.so
[ 82%] Built target vecmem_core
Scanning dependencies of target ccl_example
[ 83%] Building CXX object examples/run/cpu/CMakeFiles/ccl_example.dir/ccl_example.cpp.o
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/examples/run/cpu/ccl_example.cpp:14:
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/core/include/clusterization/component_connection.hpp:10:
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/core/include/clusterization/detail/sparse_ccl.hpp:10:
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/core/include/edm/cell.hpp:12:
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/core/include/edm/container.hpp:15:
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/containers/device_vector.hpp:12:
In file included from /home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/atomic.hpp:109:
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:43:5: error: no member named 'global_ptr' in namespace 'sycl'
    __VECMEM_SYCL_ATOMIC_CALL1(store, m_ptr, data);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:43:5: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:59:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL0(load, m_ptr);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:19:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL0'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)))
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:59:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:19:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL0'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)))
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:71:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL1(exchange, m_ptr, data);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:71:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:86:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL2(compare_exchange_strong, m_ptr, expected,
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:26:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL2'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:86:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:26:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL2'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:106:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL1(fetch_add, m_ptr, data);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:106:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:121:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL1(fetch_sub, m_ptr, data);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:121:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:136:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL1(fetch_and, m_ptr, data);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:136:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:150:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL1(fetch_or, m_ptr, data);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:150:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:165:12: error: no member named 'global_ptr' in namespace 'sycl'
    return __VECMEM_SYCL_ATOMIC_CALL1(fetch_xor, m_ptr, data);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:48: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                     ~~~~~~~~~~^
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:165:12: error: unexpected type name 'value_type': expected expression
/home/data_sync/academique/These/Traccc/test_compil_11-05/traccc_base_enable_sycl/build/_deps/vecmem-src/core/include/vecmem/memory/impl/atomic.ipp:22:59: note: expanded from macro '__VECMEM_SYCL_ATOMIC_CALL1'
        cl::sycl::atomic<value_type>(cl::sycl::global_ptr<value_type>(PTR)), \
                                                          ^
18 errors generated.
make[2]: *** [examples/run/cpu/CMakeFiles/ccl_example.dir/build.make:63: examples/run/cpu/CMakeFiles/ccl_example.dir/ccl_example.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2127: examples/run/cpu/CMakeFiles/ccl_example.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

@SylvainJoube SylvainJoube changed the title enable SYCL when TRACCC_BUILD_SYCL is set BUG : enable SYCL when TRACCC_BUILD_SYCL is set Nov 5, 2021
@SylvainJoube
Copy link
Contributor Author

Sorry, I forgot to create the PR as a WIP draft or as an issue.

@krasznaa
Copy link
Member

krasznaa commented Nov 5, 2021

I'm so very confused... 😕 What are you trying to do exactly?

To build VecMem's SYCL code using DPC++ from the latest oneAPI release, you can do the following:

[bash][Elrond]:vecmem > source /data/software/intel/oneapi-2021.4.0/setvars.sh 
 
:: initializing oneAPI environment ...
   bash: BASH_VERSION = 4.4.20(1)-release
:: advisor -- latest
:: ccl -- latest
:: compiler -- latest
:: dal -- latest
:: debugger -- latest
:: dev-utilities -- latest
:: dnnl -- latest
:: dpcpp-ct -- latest
:: dpl -- latest
:: intelpython -- latest
:: ipp -- latest
:: ippcp -- latest
:: ipp -- latest
:: mkl -- latest
:: mpi -- latest
:: tbb -- latest
:: vpl -- latest
:: vtune -- latest
:: oneAPI environment initialized ::
 
[bash][Elrond]:vecmem > export SYCLCXX=dpcpp
[bash][Elrond]:vecmem > /data/software/cmake/3.21.2/x86_64-ubuntu1804-gcc7-opt/bin/cmake -DCMAKE_BUILD_TYPE=Debug -S vecmem -B build
-- The CXX compiler identification is GNU 7.5.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - NOTFOUND
-- Looking for a HIP compiler
-- Looking for a HIP compiler - NOTFOUND
-- Looking for a SYCL compiler
-- Looking for a SYCL compiler - /data/software/intel/oneapi-2021.4.0/compiler/2021.4.0/linux/bin/dpcpp
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Performing Test VECMEM_HAVE_PMR_MEMORY_RESOURCE
-- Performing Test VECMEM_HAVE_PMR_MEMORY_RESOURCE - Failed
-- Performing Test VECMEM_HAVE_EXPERIMENTAL_PMR_MEMORY_RESOURCE
-- Performing Test VECMEM_HAVE_EXPERIMENTAL_PMR_MEMORY_RESOURCE - Success
-- Using memory resource types from the std::experimental::pmr namespace
-- Performing Test VECMEM_HAVE_DEFAULT_RESOURCE
-- Performing Test VECMEM_HAVE_DEFAULT_RESOURCE - Success
-- Check for working SYCL compiler: /data/software/intel/oneapi-2021.4.0/compiler/2021.4.0/linux/bin/dpcpp
-- Check for working SYCL compiler: /data/software/intel/oneapi-2021.4.0/compiler/2021.4.0/linux/bin/dpcpp - works
-- Performing Test VECMEM_HAVE_SYCL_EXT_ONEAPI_PRINTF
-- Performing Test VECMEM_HAVE_SYCL_EXT_ONEAPI_PRINTF - Success
-- Performing Test VECMEM_HAVE_SYCL_ONEAPI_PRINTF
-- Performing Test VECMEM_HAVE_SYCL_ONEAPI_PRINTF - Success
-- Performing Test VECMEM_HAVE_SYCL_ASSERT
-- Performing Test VECMEM_HAVE_SYCL_ASSERT - Success
-- Building GoogleTest as part of the VecMem project
-- The C compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python: /data/software/intel/oneapi-2021.4.0/intelpython/latest/bin/python3.7 (found version "3.7.11") found components: Interpreter 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/krasznaa/ATLAS/projects/vecmem/build
[bash][Elrond]:vecmem > /data/software/cmake/3.21.2/x86_64-ubuntu1804-gcc7-opt/bin/cmake --build build --target vecmem_test_sycl
[  2%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[  5%] Linking CXX shared library ../../../lib/libgtestd.so
[  5%] Built target gtest
[  7%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/allocator.cpp.o
[ 10%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/deallocator.cpp.o
[ 12%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/details/memory_resource_base.cpp.o
[ 15%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/arena.cpp.o
[ 17%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/arena_memory_resource.cpp.o
[ 20%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/identity_memory_resource.cpp.o
[ 23%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/terminal_memory_resource.cpp.o
[ 25%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/host_memory_resource.cpp.o
[ 28%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/binary_page_memory_resource.cpp.o
[ 30%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/binary_page_memory_resource_impl.cpp.o
[ 33%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/contiguous_memory_resource.cpp.o
[ 35%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/instrumenting_memory_resource.cpp.o
[ 38%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/choice_memory_resource.cpp.o
[ 41%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/coalescing_memory_resource.cpp.o
[ 43%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/conditional_memory_resource.cpp.o
[ 46%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/memory/debug_memory_resource.cpp.o
[ 48%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/utils/copy.cpp.o
[ 51%] Building CXX object core/CMakeFiles/vecmem_core.dir/src/utils/memory_monitor.cpp.o
[ 53%] Linking CXX shared library ../lib/libvecmem_core.so
[ 53%] Built target vecmem_core
Scanning dependencies of target vecmem_sycl
[ 56%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/sycl/details/memory_resource_base.sycl.o
[ 58%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/sycl/device_memory_resource.sycl.o
[ 61%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/sycl/host_memory_resource.sycl.o
[ 64%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/memory/sycl/shared_memory_resource.sycl.o
[ 66%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/copy.sycl.o
[ 69%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/queue_wrapper.sycl.o
[ 71%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/device_selector.sycl.o
[ 74%] Building SYCL object sycl/CMakeFiles/vecmem_sycl.dir/src/utils/sycl/get_queue.sycl.o
[ 76%] Linking SYCL shared library ../lib/libvecmem_sycl.so
[ 76%] Built target vecmem_sycl
[ 79%] Building CXX object tests/CMakeFiles/vecmem_testing_common.dir/common/memory_resource_name_gen.cpp.o
[ 82%] Linking CXX static library ../lib/libvecmem_testing_common.a
[ 82%] Built target vecmem_testing_common
[ 84%] Building CXX object _deps/googletest-build/googletest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 87%] Linking CXX shared library ../../../lib/libgtest_maind.so
[ 87%] Built target gtest_main
Scanning dependencies of target vecmem_test_sycl
[ 89%] Building CXX object tests/sycl/CMakeFiles/vecmem_test_sycl.dir/test_sycl_memory_resources.cpp.o
[ 92%] Building SYCL object tests/sycl/CMakeFiles/vecmem_test_sycl.dir/test_sycl_containers.sycl.o
[ 94%] Building SYCL object tests/sycl/CMakeFiles/vecmem_test_sycl.dir/test_sycl_jagged_containers.sycl.o
[ 97%] Building SYCL object tests/sycl/CMakeFiles/vecmem_test_sycl.dir/__/__/sycl/src/utils/sycl/device_selector.sycl.o
[100%] Linking SYCL executable ../../bin/vecmem_test_sycl
[100%] Built target vecmem_test_sycl
[bash][Elrond]:vecmem >

Where did you get your formalism from? I'm particularly confused about your usage of CMAKE_SYCL_COMPILER_ENV_VAR...

@stephenswat stephenswat added bug Something isn't working build This relates to the build system labels Nov 11, 2021
@stephenswat
Copy link
Member

Hi @SylvainJoube, could you please confirm whether #106 resolves this issue? If so, we can close this PR.

@stephenswat
Copy link
Member

Pinging @SylvainJoube. 🙂

@SylvainJoube
Copy link
Contributor Author

Hi @SylvainJoube, could you please confirm whether #106 resolves this issue? If so, we can close this PR.

Oh, I'm sorry, I did not see your (multiple) pings @stephenswat . I have another problem now which is related to this one but not exactly the same. Now, I can't compile when I link libraries to a sycl code (with target_link_libraries), it says fatal error: 'stdlib.h' file not found every time, for any library. I will talk about this in the issue #105 that is already open. Maybe I'm missing something, again.

And sorry for my late reply !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build This relates to the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants