More error checks
This commit is contained in:
@@ -465,7 +465,7 @@ acDeviceLoadScalarArray(const Device device, const Stream stream, const ScalarAr
|
|||||||
{
|
{
|
||||||
cudaSetDevice(device->id);
|
cudaSetDevice(device->id);
|
||||||
|
|
||||||
ERRCHK(start + num <= max(device->local_config.int_params[AC_mx],
|
ERRCHK((int)(start + num) <= max(device->local_config.int_params[AC_mx],
|
||||||
max(device->local_config.int_params[AC_my],
|
max(device->local_config.int_params[AC_my],
|
||||||
device->local_config.int_params[AC_mz])));
|
device->local_config.int_params[AC_mz])));
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,9 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
static_assert(NUM_VTXBUF_HANDLES > 0,
|
||||||
|
"ERROR: NUM_VTXBUF_HANDLES (uniform ScalarFields) must be > 0");
|
||||||
|
|
||||||
static __device__ constexpr int
|
static __device__ constexpr int
|
||||||
IDX(const int i)
|
IDX(const int i)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user