Skip to content

Commit

Permalink
Corrected constant for NL_MAX_SLICE_SIZE (it is an *unsigned* constant)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLevy committed Nov 15, 2024
1 parent 155c525 commit ce62262
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/geogram/NL/nl_cuda.c
Original file line number Diff line number Diff line change
Expand Up @@ -1317,10 +1317,9 @@ static void int32_to_int64(void* data, size_t N) {

/*
* Maximum slice size. It is limited by the maximum size that
* one can CudaMalloc. It is arround 2GB under Windows. Here
* I am defining it as 1 GB
* one can CudaMalloc (2 GB)
*/
#define NL_MAX_SLICE_SIZE (2*1024*1024*1024/8)
#define NL_MAX_SLICE_SIZE (2u*1024u*1024u*1024u/8u)

/**
* \brief Decomposes a CRS matrix into multiple slices.
Expand Down

0 comments on commit ce62262

Please sign in to comment.