Service functions

Overview

// global functions

DPCTL_API __dpctl_give const char*
DPCTLService_GetDPCPPVersion(void);

DPCTL_API void
DPCTLService_InitLogger(
    const char* app_name,
    const char* log_dir
    );

DPCTL_API void
DPCTLService_ShutdownLogger(void);

Detailed Documentation

Global Functions

DPCTL_API __dpctl_give const char*
DPCTLService_GetDPCPPVersion(void)

Get version of DPC++ toolchain the library was compiled with.

Returns:

A C string containing the version of DPC++ toolchain.

DPCTL_API void
DPCTLService_InitLogger(
    const char* app_name,
    const char* log_dir
    )

Initialize logger if compiled to use logger, no-op otherwise.

Parameters:

app_name

C-string for application name reflected in the log.

log_dir

C-string for directory where log files are placed.

DPCTL_API void
DPCTLService_ShutdownLogger(void)

Finalize logger if enabled, no-op otherwise.