Adjust file structure for CUDA
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
#include <cuda_runtime.h>
|
||||
//---
|
||||
#include <atom.h>
|
||||
#include <neighbor.h>
|
||||
|
||||
#ifndef __CUDA_ATOM_H_
|
||||
#define __CUDA_ATOM_H_
|
||||
extern void initCuda(Atom*, Neighbor*);
|
||||
#ifndef __DEVICE_H_
|
||||
#define __DEVICE_H_
|
||||
|
||||
#ifdef CUDA_TARGET
|
||||
#include <cuda_runtime.h>
|
||||
extern void cuda_assert(const char *msg, cudaError_t err);
|
||||
#endif
|
||||
|
||||
extern void initDevice(Atom*, Neighbor*);
|
||||
extern void *allocateGPU(size_t bytesize);
|
||||
extern void *reallocateGPU(void *ptr, size_t new_bytesize);
|
||||
extern void memcpyToGPU(void *d_ptr, void *h_ptr, size_t bytesize);
|
@@ -20,6 +20,8 @@
|
||||
* with MD-Bench. If not, see <https://www.gnu.org/licenses/>.
|
||||
* =======================================================================================
|
||||
*/
|
||||
#include <stdbool.h>
|
||||
//---
|
||||
#include <parameter.h>
|
||||
#include <atom.h>
|
||||
|
||||
|
Reference in New Issue
Block a user