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
67#if defined(HAVE_ACCEL)
73#define cs_mpi_device_support 0;
79#if defined(SYCL_LANGUAGE_VERSION) && !defined(CS_GLOB_SYCL_QUEUE_IS_DEFINED)
80extern sycl::queue cs_glob_sycl_queue;
81#define CS_GLOB_SYCL_QUEUE_IS_DEFINED 1
96#if defined(HAVE_ACCEL)
111#if defined(HAVE_OPENMP_TARGET)
125cs_omp_target_select_default_device(
void);
129#if defined(HAVE_SYCL)
145cs_sycl_select_default_device(
void);
static int cs_get_device_id(void)
Return currently associated device id.
Definition: cs_base_accel.h:104
#define cs_mpi_device_support
Definition: cs_base_accel.h:73
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
#define END_C_DECLS
Definition: cs_defs.h:543