Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap assert include with extern C++ #1197

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/seq_mv/csr_matop_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ hypre_GpuMatDataDestroy(hypre_GpuMatData *data)
HYPRE_ROCSPARSE_CALL( rocsparse_destroy_mat_info(hypre_GpuMatDataMatInfo(data)) );

#elif defined(HYPRE_USING_ONEMKLSPARSE)
HYPRE_ONEMKL_CALL( oneapi::mkl::sparse::release_matrix_handle(&hypre_GpuMatDataMatHandle(data)) );
HYPRE_ONEMKL_CALL( oneapi::mkl::sparse::release_matrix_handle(*hypre_HandleComputeStream(hypre_handle()),
&hypre_GpuMatDataMatHandle(data)) );
#endif
}

Expand Down
9 changes: 9 additions & 0 deletions src/utilities/_hypre_utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,17 @@ HYPRE_Int hypre_ParPrintf(MPI_Comm comm, const char *format, ...);
#ifndef hypre_ERROR_HEADER
#define hypre_ERROR_HEADER

#ifdef __cplusplus
extern "C++"
{
#endif

#include <assert.h>

#ifdef __cplusplus
}
#endif

/*--------------------------------------------------------------------------
* Global variable used in hypre error checking
*--------------------------------------------------------------------------*/
Expand Down
9 changes: 9 additions & 0 deletions src/utilities/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@
#ifndef hypre_ERROR_HEADER
#define hypre_ERROR_HEADER

#ifdef __cplusplus
extern "C++"
{
#endif

#include <assert.h>

#ifdef __cplusplus
}
#endif

/*--------------------------------------------------------------------------
* Global variable used in hypre error checking
*--------------------------------------------------------------------------*/
Expand Down