convert gpu lib to use c++-style include files

This commit is contained in:
Axel Kohlmeyer 2018-05-08 00:25:10 -04:00
parent ff6507e7b7
commit 3394d18a2a
60 changed files with 60 additions and 60 deletions

View File

@ -300,7 +300,7 @@
#ifndef __CUDPP_H__ #ifndef __CUDPP_H__
#define __CUDPP_H__ #define __CUDPP_H__
#include <stdlib.h> // for size_t #include <cstdlib> // for size_t
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -16,7 +16,7 @@
//#include "cudpp_spmvmult.h" //#include "cudpp_spmvmult.h"
#include "cudpp_radixsort.h" #include "cudpp_radixsort.h"
#include <assert.h> #include <cassert>
CUDPPPlanManager* CUDPPPlanManager::m_instance = NULL; CUDPPPlanManager* CUDPPPlanManager::m_instance = NULL;

View File

@ -25,7 +25,7 @@
#include <cuda.h> #include <cuda.h>
#include <cudpp.h> #include <cudpp.h>
#include <limits.h> #include <limits.h>
#include <float.h> #include <cfloat>
#if (CUDA_VERSION >= 3000) #if (CUDA_VERSION >= 3000)
#define LAUNCH_BOUNDS(x) __launch_bounds__((x)) #define LAUNCH_BOUNDS(x) __launch_bounds__((x))

View File

@ -1,7 +1,7 @@
#ifndef NVD_MACROS_H #ifndef NVD_MACROS_H
#define NVD_MACROS_H #define NVD_MACROS_H
#include <stdio.h> #include <cstdio>
#include <cassert> #include <cassert>
#include <cuda.h> #include <cuda.h>

View File

@ -1,7 +1,7 @@
#ifndef OCL_MACROS_H #ifndef OCL_MACROS_H
#define OCL_MACROS_H #define OCL_MACROS_H
#include <stdio.h> #include <cstdio>
#include <cassert> #include <cassert>
#ifdef __APPLE__ #ifdef __APPLE__

View File

@ -16,7 +16,7 @@
#ifndef LAL_ANSWER_H #ifndef LAL_ANSWER_H
#define LAL_ANSWER_H #define LAL_ANSWER_H
#include <math.h> #include <cmath>
#include "mpi.h" #include "mpi.h"
#if defined(USE_OPENCL) #if defined(USE_OPENCL)

View File

@ -16,7 +16,7 @@
#ifndef PAIR_GPU_ATOM_H #ifndef PAIR_GPU_ATOM_H
#define PAIR_GPU_ATOM_H #define PAIR_GPU_ATOM_H
#include <math.h> #include <cmath>
#include "mpi.h" #include "mpi.h"
#if defined(USE_OPENCL) #if defined(USE_OPENCL)

View File

@ -17,7 +17,7 @@
#define LAL_BALANCE_H #define LAL_BALANCE_H
#include "lal_device.h" #include "lal_device.h"
#include <math.h> #include <cmath>
#define _HD_BALANCE_EVERY 25 #define _HD_BALANCE_EVERY 25
#define _HD_BALANCE_WEIGHT 0.5 #define _HD_BALANCE_WEIGHT 0.5

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_beck.h" #include "lal_beck.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_born_coul_long.h" #include "lal_born_coul_long.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_born_coul_wolf.h" #include "lal_born_coul_wolf.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_born.h" #include "lal_born.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_buck_coul.h" #include "lal_buck_coul.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_buck_coul_long.h" #include "lal_buck_coul_long.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_buck.h" #include "lal_buck.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_charmm_long.h" #include "lal_charmm_long.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_colloid.h" #include "lal_colloid.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_coul_debye.h" #include "lal_coul_debye.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_coul_dsf.h" #include "lal_coul_dsf.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_coul.h" #include "lal_coul.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_coul_long.h" #include "lal_coul_long.h"

View File

@ -16,7 +16,7 @@
#include "lal_device.h" #include "lal_device.h"
#include "lal_precision.h" #include "lal_precision.h"
#include <map> #include <map>
#include <math.h> #include <cmath>
#ifdef _OPENMP #ifdef _OPENMP
#include <omp.h> #include <omp.h>
#endif #endif

View File

@ -22,7 +22,7 @@
#include "lal_pppm.h" #include "lal_pppm.h"
#include "mpi.h" #include "mpi.h"
#include <sstream> #include <sstream>
#include "stdio.h" #include <cstdio>
#include <string> #include <string>
#include <queue> #include <queue>

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_dipole_lj.h" #include "lal_dipole_lj.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_dipole_lj_sf.h" #include "lal_dipole_lj_sf.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_dpd.h" #include "lal_dpd.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_eam.h" #include "lal_eam.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_eam.h" #include "lal_eam.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_eam.h" #include "lal_eam.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_gauss.h" #include "lal_gauss.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_gayberne.h" #include "lal_gayberne.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj96.h" #include "lal_lj96.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_class2_long.h" #include "lal_lj_class2_long.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_coul_debye.h" #include "lal_lj_coul_debye.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_coul.h" #include "lal_lj_coul.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_coul_long.h" #include "lal_lj_coul_long.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_coul_msm.h" #include "lal_lj_coul_msm.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_cubic.h" #include "lal_lj_cubic.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_dsf.h" #include "lal_lj_dsf.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_expand.h" #include "lal_lj_expand.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj.h" #include "lal_lj.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_gromacs.h" #include "lal_lj_gromacs.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_sdk.h" #include "lal_lj_sdk.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_lj_sdk_long.h" #include "lal_lj_sdk_long.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_mie.h" #include "lal_mie.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_morse.h" #include "lal_morse.h"

View File

@ -17,7 +17,7 @@
#include "lal_precision.h" #include "lal_precision.h"
#include "lal_neighbor.h" #include "lal_neighbor.h"
#include "lal_device.h" #include "lal_device.h"
#include "math.h" #include <cmath>
using namespace LAMMPS_AL; using namespace LAMMPS_AL;
int Neighbor::bytes_per_atom(const int max_nbors) const { int Neighbor::bytes_per_atom(const int max_nbors) const {

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_pppm.h" #include "lal_pppm.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_re_squared.h" #include "lal_re_squared.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_soft.h" #include "lal_soft.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_sw.h" #include "lal_sw.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_table.h" #include "lal_table.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_tersoff.h" #include "lal_tersoff.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_tersoff_mod.h" #include "lal_tersoff_mod.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_tersoff_zbl.h" #include "lal_tersoff_zbl.h"

View File

@ -17,7 +17,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_ufm.h" #include "lal_ufm.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_vashishta.h" #include "lal_vashishta.h"
using namespace LAMMPS_AL; using namespace LAMMPS_AL;

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_yukawa_colloid.h" #include "lal_yukawa_colloid.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_yukawa.h" #include "lal_yukawa.h"

View File

@ -15,7 +15,7 @@
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>
#include <math.h> #include <cmath>
#include "lal_zbl.h" #include "lal_zbl.h"