1#ifndef __CS_BASE_ACCEL_H__
2#define __CS_BASE_ACCEL_H__
38#if defined(SYCL_LANGUAGE_VERSION)
39#include <sycl/sycl.hpp>
52#define CS_FREE_HD(_ptr) \
53cs_mem_free(_ptr, #_ptr, __FILE__, __LINE__), _ptr = NULL
69#if defined(SYCL_LANGUAGE_VERSION) && !defined(CS_GLOB_SYCL_QUEUE_IS_DEFINED)
70extern sycl::queue cs_glob_sycl_queue;
71#define CS_GLOB_SYCL_QUEUE_IS_DEFINED 1
86#if defined(HAVE_ACCEL)
101#if defined(HAVE_OPENMP_TARGET)
115cs_omp_target_select_default_device(
void);
119#if defined(HAVE_SYCL)
135cs_sycl_select_default_device(
void);
static int cs_get_device_id(void)
Return currently associated device id.
Definition: cs_base_accel.h:94
#define BEGIN_C_DECLS
Definition: cs_defs.h:554
#define END_C_DECLS
Definition: cs_defs.h:555