DPC++ Runtime
Runtime libraries for oneAPI DPC++
defs.hpp File Reference
#include <iostream>
Include dependency graph for defs.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 syclcompat
 

Macros

#define __syclcompat_align__(n)   __attribute__((aligned(n)))
 
#define __syclcompat_inline__   __inline__ __attribute__((always_inline))
 
#define __syclcompat_noinline__   __attribute__((noinline))
 
#define SYCLCOMPAT_COMPATIBILITY_TEMP   (600)
 
#define SYCLCOMPAT_EXPORT
 
#define SYCLCOMPAT_CHECK_ERROR(expr)
 

Enumerations

enum  syclcompat::error_code { syclcompat::SUCCESS = 0 , syclcompat::BACKEND_ERROR = 1 , syclcompat::DEFAULT_ERROR = 999 }
 

Macro Definition Documentation

◆ __syclcompat_align__

#define __syclcompat_align__ (   n)    __attribute__((aligned(n)))

Definition at line 45 of file defs.hpp.

◆ __syclcompat_inline__

#define __syclcompat_inline__   __inline__ __attribute__((always_inline))

Definition at line 46 of file defs.hpp.

◆ __syclcompat_noinline__

#define __syclcompat_noinline__   __attribute__((noinline))

Definition at line 47 of file defs.hpp.

◆ SYCLCOMPAT_CHECK_ERROR

#define SYCLCOMPAT_CHECK_ERROR (   expr)
Value:
[&]() { \
try { \
expr; \
} catch (sycl::exception const &e) { \
std::cerr << e.what() << std::endl; \
} catch (std::runtime_error const &e) { \
std::cerr << e.what() << std::endl; \
} \
}()
const char * what() const noexcept final
Definition: exception.cpp:75
__SYCL_EXTERN_STREAM_ATTRS ostream cerr
Linked to standard error (unbuffered)
@ DEFAULT_ERROR
Definition: defs.hpp:59
@ BACKEND_ERROR
Definition: defs.hpp:59
@ SUCCESS
Definition: defs.hpp:59

Definition at line 62 of file defs.hpp.

◆ SYCLCOMPAT_COMPATIBILITY_TEMP

#define SYCLCOMPAT_COMPATIBILITY_TEMP   (600)

Definition at line 50 of file defs.hpp.

◆ SYCLCOMPAT_EXPORT

#define SYCLCOMPAT_EXPORT

Definition at line 55 of file defs.hpp.