/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2014,2015,2017, by the GROMACS development team, led by
+ * Copyright (c) 2012,2014,2015,2016,2017, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
return cu_copy_H2D_generic(d_dest, h_src, bytes, true, s);
}
-int cu_copy_H2D_alloc(void ** d_dest, void * h_src, size_t bytes)
-{
- cudaError_t stat;
-
- if (d_dest == NULL || h_src == NULL || bytes == 0)
- {
- return -1;
- }
-
- stat = cudaMalloc(d_dest, bytes);
- CU_RET_ERR(stat, "cudaMalloc failed in cu_copy_H2D_alloc");
-
- return cu_copy_H2D(*d_dest, h_src, bytes);
-}
-
float cu_event_elapsed(cudaEvent_t start, cudaEvent_t end)
{
float t = 0.0;