2022-08-09 18:53:53 +02:00
|
|
|
#include <cuda_runtime.h>
|
|
|
|
//---
|
|
|
|
#include <atom.h>
|
|
|
|
#include <neighbor.h>
|
|
|
|
|
|
|
|
#ifndef __CUDA_ATOM_H_
|
|
|
|
#define __CUDA_ATOM_H_
|
|
|
|
extern void initCuda(Atom*, Neighbor*, Atom*, Neighbor*);
|
2022-08-12 04:19:38 +02:00
|
|
|
extern void cuda_assert(const char *msg, cudaError_t err);
|
|
|
|
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);
|
|
|
|
extern void memcpyFromGPU(void *h_ptr, void *d_ptr, size_t bytesize);
|
|
|
|
extern void memsetGPU(void *d_ptr, int value, size_t bytesize);
|
2022-08-09 18:53:53 +02:00
|
|
|
#endif
|