Skip to content

build error with sycl #61

Description

@edisonchan
cmake ../mixbench-sycl -D CMAKE_CXX_COMPILER=icpx -D CMAKE_CXX_FLAGS="-fsycl -fsycl-device-code-split=per_kernel"
-- The CXX compiler identification is IntelLLVM 2025.3.3
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/intel/intel/oneapi/compiler/2025.3/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Default CMAKE_BUILD_TYPE not set. Using Release with Debug Info
-- Configuring done (0.7s)
-- Generating done (0.0s)
-- Build files have been written to: /home/intel/Downloads/mixbench/build
intel@P7:~/Downloads/mixbench/build$ make
[ 33%] Building CXX object CMakeFiles/mixbench-sycl.dir/main-sycl.cpp.o
In file included from /home/intel/Downloads/mixbench/mixbench-sycl/main-sycl.cpp:8:
/home/intel/intel/oneapi/compiler/2025.3/bin/compiler/../../include/CL/sycl.hpp:14:2: warning: "CL/sycl.hpp is deprecated, use sycl/sycl.hpp" [-W#warnings]
   14 | #warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp"
      |  ^
1 warning generated.
In file included from /home/intel/Downloads/mixbench/mixbench-sycl/main-sycl.cpp:8:
/home/intel/intel/oneapi/compiler/2025.3/bin/compiler/../../include/CL/sycl.hpp:14:2: warning: "CL/sycl.hpp is deprecated, use sycl/sycl.hpp" [-W#warnings]
   14 | #warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp"
      |  ^
1 warning generated.
[ 66%] Building CXX object CMakeFiles/mixbench-sycl.dir/mix_kernels_sycl.cpp.o
In file included from /home/intel/Downloads/mixbench/mixbench-sycl/mix_kernels_sycl.cpp:8:
/home/intel/intel/oneapi/compiler/2025.3/bin/compiler/../../include/CL/sycl.hpp:14:2: warning: "CL/sycl.hpp is deprecated, use sycl/sycl.hpp" [-W#warnings]
   14 | #warning "CL/sycl.hpp is deprecated, use sycl/sycl.hpp"
      |  ^
/home/intel/Downloads/mixbench/mixbench-sycl/mix_kernels_sycl.cpp:32:63: error: no template named 'is_genfloat' in namespace 'sycl::detail'; did you mean 'is_genfloat_v'?
   32 | struct MADOperator<T, typename std::enable_if_t<sycl::detail::is_genfloat<T>::value>> {
      |                                                 ~~~~~~~~~~~~~~^~~~~~~~~~~
      |                                                               is_genfloat_v
/home/intel/intel/oneapi/compiler/2025.3/bin/compiler/../../include/sycl/detail/generic_type_traits.hpp:57:23: note: 'is_genfloat_v' declared here
   57 | inline constexpr bool is_genfloat_v =
      |                       ^
/home/intel/Downloads/mixbench/mixbench-sycl/mix_kernels_sycl.cpp:32:77: error: qualified name refers into a specialization of variable template 'sycl::detail::is_genfloat_v'
   32 | struct MADOperator<T, typename std::enable_if_t<sycl::detail::is_genfloat<T>::value>> {
      |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/intel/intel/oneapi/compiler/2025.3/bin/compiler/../../include/sycl/detail/generic_type_traits.hpp:57:23: note: variable template 'is_genfloat_v' declared here
   57 | inline constexpr bool is_genfloat_v =
      |                       ^
1 warning and 2 errors generated.
make[2]: *** [CMakeFiles/mixbench-sycl.dir/build.make:93: CMakeFiles/mixbench-sycl.dir/mix_kernels_sycl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/mixbench-sycl.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions