Skip to content

Commit

Permalink
[SYCL][CMake] Build sycl-headers before bfloat16 objects (intel#8745)
Browse files Browse the repository at this point in the history
bfloat16_wrapper.cpp requires SYCL headers, so ensure that they've been
staged to the build directory before compiling.
  • Loading branch information
tcreech-intel authored Mar 24, 2023
1 parent b07cc12 commit 4167545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdevice/cmake/modules/SYCLLibdevice.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ set(complex_obj_deps device_complex.h device.h sycl-compiler)
set(cmath_obj_deps device_math.h device.h sycl-compiler)
set(imf_obj_deps device_imf.hpp imf_half.hpp imf_bf16.hpp device.h sycl-compiler)
set(itt_obj_deps device_itt.h spirv_vars.h device.h sycl-compiler)
set(bfloat16_obj_deps sycl-compiler)
set(bfloat16_obj_deps sycl-headers sycl-compiler)

add_devicelib_obj(libsycl-itt-stubs SRC itt_stubs.cpp DEP ${itt_obj_deps})
add_devicelib_obj(libsycl-itt-compiler-wrappers SRC itt_compiler_wrappers.cpp DEP ${itt_obj_deps})
Expand Down

0 comments on commit 4167545

Please sign in to comment.