2022-01-12 00:01:42 +08:00
|
|
|
#ifndef __RUNTIME_IMPL__
|
|
|
|
#define __RUNTIME_IMPL__
|
|
|
|
#include "structures.h"
|
2022-05-04 20:59:38 +08:00
|
|
|
#include <stdint.h>
|
|
|
|
extern "C" {
|
|
|
|
cudaError_t cudaGetDevice(int *devPtr);
|
|
|
|
const char *cudaGetErrorname(cudaError_t);
|
2022-01-12 00:01:42 +08:00
|
|
|
cudaError_t cudaDeviceReset(void);
|
|
|
|
cudaError_t cudaDeviceSynchronize(void);
|
2022-05-04 20:59:38 +08:00
|
|
|
cudaError_t cudaThreadSynchronize(void);
|
2022-01-12 00:01:42 +08:00
|
|
|
cudaError_t cudaFree(void *devPtr);
|
|
|
|
cudaError_t cudaLaunchKernel(const void *func, dim3 gridDim, dim3 blockDim,
|
|
|
|
void **args, size_t sharedMem,
|
|
|
|
cudaStream_t stream);
|
|
|
|
cudaError_t cudaMalloc(void **devPtr, size_t size);
|
|
|
|
cudaError_t cudaMemcpy(void *dst, const void *src, size_t count,
|
|
|
|
cudaMemcpyKind kind);
|
2022-05-04 20:59:38 +08:00
|
|
|
cudaError_t cudaMemcpyToSymbol_host(void *dst, const void *src, size_t count,
|
|
|
|
size_t offset, cudaMemcpyKind kind);
|
|
|
|
cudaError_t cudaMemset(void *devPtr, int value, size_t count);
|
2022-01-12 00:01:42 +08:00
|
|
|
cudaError_t cudaSetDevice(int device);
|
|
|
|
cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src);
|
|
|
|
cudaError_t cudaStreamCreate(cudaStream_t *pStream);
|
|
|
|
cudaError_t cudaStreamDestroy(cudaStream_t stream);
|
|
|
|
cudaError_t cudaStreamSynchronize(cudaStream_t stream);
|
2022-05-04 20:59:38 +08:00
|
|
|
}
|
2022-01-12 00:01:42 +08:00
|
|
|
#endif
|