Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

fsycl

Enables a program to be compiled as a SYCL program rather than as plain C++11 program.

Syntax

Linux:

-fsycl

Windows:

-fsycl

Arguments

None

Default

SYCL: ON

A C++ program is compiled as a SYCL program.

C++: OFF

A C++ program is compiled as a C++11 program.

Description

This option enables a program to be compiled as a SYCL program rather than as plain C++11 program.

NOTE:

On Windows, option -fsycl sets option /MD, which tells the linker to search for unresolved references in a multithreaded, dynamic-link runtime library. You cannot specify option /MT.

NOTE:

On Windows, to prevent potential sycl.lib library conflicts, you should add any desired SYCL library by specifying the library in the link command.

IDE Equivalent

None

Alternate Options

None

See Also