Skip to content

Commit

Permalink
nvector: (fused) debug 2, lambda correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdomine committed Jul 12, 2023
1 parent 1a2e58e commit 95c755b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nvector/parhyp/nvector_parhyp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ static int ReductionBuffer_Init(N_Vector v, realtype value, size_t n)
N_PrivateVectorContent_ParHyp vcp = NV_PRIVATE_PH(v);

// Define the allocation attempt function
int TryAlloc = [&](SUNMemory *memptr, SUNMemoryType mem_type)
auto TryAlloc = [&](SUNMemory *memptr, SUNMemoryType mem_type) -> int
{
return SUNMemoryHelper_Alloc(NV_MEMHELP_PH(v), memptr, bytes, mem_type, (void*) NV_STREAM_PH(v));
};
Expand Down Expand Up @@ -2985,7 +2985,7 @@ static int FusedBuffer_Init(N_Vector v, int nreal, int nptr)
N_PrivateVectorContent_ParHyp vcp = NV_PRIVATE_PH(v);

// Define the allocation attempt function
int TryAlloc = [&](SUNMemory *memptr, SUNMemoryType mem_type)
auto TryAlloc = [&](SUNMemory *memptr, SUNMemoryType mem_type) -> int
{
return SUNMemoryHelper_Alloc(NV_MEMHELP_PH(v), memptr, bytes, mem_type, (void*) NV_STREAM_PH(v));
};
Expand Down

0 comments on commit 95c755b

Please sign in to comment.