Skip to content

OIDN configure fails due to C++17 requirement #22059

@sarnex

Description

@sarnex

Describe the bug

After the latest pulldown, we now require C++17.
This causes OIDN configure to fail:

CMake Error at devices/sycl/CMakeLists.txt:25 (message):
  Building with SYCL support requires oneAPI DPC++ Compiler as the C/C++
  compiler

From --debug-trycompile

[1/2] Building CXX object CMakeFiles/cmTC_9ec30.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_9ec30.dir/src.cxx.o 
ccache /iusers/nsarnie/llvm_oidn/build/bin/clang++ -DOIDN_DEVICE_SYCL_SUPPORTED  -Wall -Wno-unknown-pragmas -Wno-pass-failed -Wno-unneeded-internal-declaration -fPIC -Wformat -Wformat-security     -fsycl -std=c++11 -MD -MT CMakeFiles/cmTC_9ec30.dir/src.cxx.o -MF CMakeFiles/cmTC_9ec30.dir/src.cxx.o.d -o CMakeFiles/cmTC_9ec30.dir/src.cxx.o -c /iusers/nsarnie/oidn/build/CMakeFiles/CMakeScratch/TryCompile-d47die/src.cxx
clang++: error: SYCL requires C++17 or later; '-std=c++11' is not supported
clang++: error: SYCL requires C++17 or later; '-std=c++11' is not supported
ninja: build stopped: subcommand failed.

My understanding after talking with the Driver team is this was supposed to be an existing requirement, but there was a bug in intel/llvm allowing older C++ versions and it was only caught when we implemented the requirement upstream.

To reproduce

No response

Environment

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions