Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 3/22/2024
Public
Document Table of Contents

fsycl-enable-function-pointers

Enables function pointers and support for virtual functions for SYCL kernels and device functions. This is an experimental feature.

Syntax

Linux:

-fsycl-enable-function-pointers

Windows:

-fsycl-enable-function-pointers

Arguments

None

Default

OFF

Function pointers are not enabled and virtual functions for SYCL kernels and device functions are not supported.

Description

This option enables function pointers and support for virtual functions for SYCL kernels and device functions. This is an experimental feature.

This enhanced support is limited to CPU-device only and cannot currently be used for GPU devices.

NOTE:

When using this option, you must also specify option -fsycl.

For information about available SYCL drivers, refer to Invoke the Compiler.

NOTE:

When SYCL offloading is enabled, this option only applies to device-specific compilation.

IDE Equivalent

None

Alternate Options

None