20 #define __SYCL_RT_OS_WINDOWS
29 #define __SYCL_RT_OS_LINUX
30 #define __SYCL_RT_OS_POSIX_SUPPORT
31 #elif defined(__APPLE__) && defined(__MACH__)
33 #define __SYCL_RT_OS_DARWIN
34 #define __SYCL_RT_OS_POSIX_SUPPORT
36 #error "Unsupported compiler or OS"
40 inline namespace _V1 {
52 #ifdef __SYCL_RT_OS_WINDOWS
53 static constexpr
const char *DirSep =
"\\";
55 static constexpr
const char *DirSep =
"/";
59 static size_t getOSMemSize();
66 static void alignedFree(
void *Ptr);
69 static int makeDir(
const char *Dir);
73 #ifdef __SYCL_RT_OS_WINDOWS
75 return !_stat(Path.c_str(), &Stat);
78 return !stat(Path.c_str(), &Stat);
Groups the OS-dependent services.
static bool isPathPresent(const std::string &Path)
Checks if specified path is present.
static std::string getDirName(const char *Path)
Returns a directory component of a path.
static std::string getCurrentDSODir()
Returns an absolute path to a directory where the object was found.
void * alignedAlloc(size_t Alignment, size_t Bytes, const context &Ctxt, const device &Dev, sycl::usm::alloc Kind, const code_location &CL)