Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 8 additions & 40 deletions include/MGARDXConfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,20 @@
#ifndef MGARD_X_CONFIG_H
#define MGARD_X_CONFIG_H

#if '@MGARD_ENABLE_SERIAL@' == 'ON'
#define MGARD_ENABLE_SERIAL 1
#else
#define MGARD_ENABLE_SERIAL 0
#endif
#cmakedefine01 MGARD_ENABLE_SERIAL

#if '@MGARD_ENABLE_OPENMP@' == 'ON'
#define MGARD_ENABLE_OPENMP 1
#else
#define MGARD_ENABLE_OPENMP 0
#endif
#cmakedefine01 MGARD_ENABLE_OPENMP

#if '@MGARD_ENABLE_CUDA@' == 'ON'
#define MGARD_ENABLE_CUDA 1
#else
#define MGARD_ENABLE_CUDA 0
#endif
#cmakedefine01 MGARD_ENABLE_CUDA

#if '@MGARD_ENABLE_HIP@' == 'ON'
#define MGARD_ENABLE_HIP 1
#else
#define MGARD_ENABLE_HIP 0
#endif
#cmakedefine01 MGARD_ENABLE_HIP

#if '@MGARD_ENABLE_SYCL@' == 'ON'
#define MGARD_ENABLE_SYCL 1
#else
#define MGARD_ENABLE_SYCL 0
#endif
#cmakedefine01 MGARD_ENABLE_SYCL

#if '@MGARD_ENABLE_LEGACY_CUDA@' == 'ON'
#define MGARD_ENABLE_LEGACY_CUDA 1
#else
#define MGARD_ENABLE_LEGACY_CUDA 0
#endif
#cmakedefine01 MGARD_ENABLE_LEGACY_CUDA

#if '@MGARD_ENABLE_AUTO_TUNING@' == 'ON'
#define MGARD_ENABLE_AUTO_TUNING 1
#else
#define MGARD_ENABLE_AUTO_TUNING 0
#endif
#cmakedefine01 MGARD_ENABLE_AUTO_TUNING

#if '@MGARD_ENABLE_EXTERNAL_COMPRESSOR@' == 'ON'
#define MGARD_ENABLE_EXTERNAL_COMPRESSOR 1
#else
#define MGARD_ENABLE_EXTERNAL_COMPRESSOR 0
#endif
#cmakedefine01 MGARD_ENABLE_EXTERNAL_COMPRESSOR

#endif
2 changes: 2 additions & 0 deletions include/mgard-x/RuntimeX/RuntimeX.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
// Serial backend should be always available
#if MGARD_ENABLE_SERIAL
#include "DeviceAdapters/DeviceAdapterSerial.h"
#else
#error "The serial MGARD device should always be available."
#endif

#if MGARD_ENABLE_OPENMP
Expand Down
Loading