Skip to content

Commit

Permalink
Update verbosity to debug Intel oneAPI builds
Browse files Browse the repository at this point in the history
Signed-off-by: Quincey Koziol <[email protected]>
  • Loading branch information
qkoziol committed Apr 14, 2024
1 parent ae1b509 commit cafdb39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/H5TSpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,12 @@ H5TS_pool_destroy(H5TS_pool_t *pool)
FUNC_ENTER_NOAPI_NAMECHECK_ONLY

/* Sanity checks */
fprintf(stderr, "%s:%u\n", __func__, __LINE__);
if (H5_UNLIKELY(NULL == pool))
HGOTO_DONE(FAIL);

/* Acquire the mutex for the pool */
fprintf(stderr, "%s:%u\n", __func__, __LINE__);
if (H5_UNLIKELY(H5TS_mutex_lock(&pool->mutex) < 0))
HGOTO_DONE(FAIL);
have_mutex = true;
Expand All @@ -364,24 +366,29 @@ H5TS_pool_destroy(H5TS_pool_t *pool)
pool->shutdown = true;

/* Wake all the worker threads up */
fprintf(stderr, "%s:%u\n", __func__, __LINE__);
if (H5_UNLIKELY(H5TS_cond_broadcast(&pool->cond) < 0))
HGOTO_DONE(FAIL);

/* Release the pool's mutex */
fprintf(stderr, "%s:%u\n", __func__, __LINE__);
if (H5_UNLIKELY(H5TS_mutex_unlock(&pool->mutex) < 0))
HGOTO_DONE(FAIL);
have_mutex = false;

/* Free pool */
fprintf(stderr, "%s:%u\n", __func__, __LINE__);
if (H5_UNLIKELY(H5TS__pool_free(pool) < 0))
HGOTO_DONE(FAIL);

done:
/* Release the pool's mutex, if we're holding it */
fprintf(stderr, "%s:%u\n", __func__, __LINE__);
if (H5_UNLIKELY(have_mutex))
if (H5_UNLIKELY(H5TS_mutex_unlock(&pool->mutex) < 0))
ret_value = FAIL;

fprintf(stderr, "%s:%u\n", __func__, __LINE__);
FUNC_LEAVE_NOAPI_NAMECHECK_ONLY(ret_value)
} /* end H5TS_pool_destroy() */

Expand Down

0 comments on commit cafdb39

Please sign in to comment.