Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Detray/tests/unit_tests/device/sycl/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 message(STATUS "Building detray SYCL unit tests")
0010 
0011 # Enable SYCL as a language.
0012 vecmem_check_language( SYCL )
0013 
0014 enable_language(SYCL)
0015 
0016 # Set the default SYCL compiler flags.
0017 include(detray-compiler-options-sycl)
0018 
0019 # Define unit tests for multiple algebra plugins
0020 # Currently, only 'array' is supported in SYCL code
0021 set(algebras "array")
0022 
0023 foreach(algebra ${algebras})
0024     # Unit tests for the selected algebra.
0025     detray_add_unit_test(sycl_${algebra}
0026        "algebra.sycl"
0027        LINK_LIBRARIES GTest::gtest_main vecmem::sycl detray::test_common detray::test_sycl
0028     )
0029 
0030     target_compile_definitions(
0031         detray_unit_test_sycl_${algebra}
0032         PRIVATE ${algebra}=${algebra}
0033     )
0034 endforeach()