Skip to content

Commit

Permalink
Undefine _Float16
Browse files Browse the repository at this point in the history
Prevent _Float16 defined by CUDA headers from hiding the ISO C type used by GCC
  • Loading branch information
fwyzard committed May 31, 2023
1 parent 1bce7ad commit e736feb
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
//#define GPU_DEBUG
#if defined(EDM_ML_DEBUG) || defined(GPU_DEBUG)
#define GPU_CHECK
#include <cstdio>
#endif

#include <cub/cub.cuh>
// prevent _Float16 defined by CUDA headers from hiding the ISO C type used by GCC
#ifdef _Float16
#undef _Float16
#endif

#include "CUDADataFormats/SiStripCluster/interface/SiStripClustersCUDA.h"
#include "CalibFormats/SiStripObjects/interface/SiStripClusterizerConditionsGPU.h"
#include "HeterogeneousCore/CUDAUtilities/interface/allocate_device.h"
#include "HeterogeneousCore/CUDAUtilities/interface/allocate_host.h"
#include "HeterogeneousCore/CUDAUtilities/interface/copyAsync.h"
#include "HeterogeneousCore/CUDAUtilities/interface/currentDevice.h"

#include "HeterogeneousCore/CUDAUtilities/interface/host_unique_ptr.h"
#include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h"

#include "HeterogeneousCore/CUDAUtilities/interface/copyAsync.h"

#include "CUDADataFormats/SiStripCluster/interface/SiStripClustersCUDA.h"

#include "CalibFormats/SiStripObjects/interface/SiStripClusterizerConditionsGPU.h"
#include "HeterogeneousCore/CUDAUtilities/interface/host_unique_ptr.h"

#include "ChannelLocsGPU.h"
#include "SiStripRawToClusterGPUKernel.h"
#include "StripDataView.h"

//#define GPU_DEBUG
#if defined(EDM_ML_DEBUG) || defined(GPU_DEBUG)
#define GPU_CHECK
#include <cstdio>
#endif

using namespace stripgpu;
using ConditionsDeviceView = SiStripClusterizerConditionsGPU::Data::DeviceView;

Expand Down

0 comments on commit e736feb

Please sign in to comment.