Skip to content

Commit

Permalink
UCM/CUDA: Fix hook mode check
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Feb 2, 2022
1 parent 4cf36dd commit 2fd5f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ucm/cuda/cudamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ ucm_cuda_install_hooks(ucm_cuda_func_t *funcs, const char *name,
return UCS_OK;
}

if (ucm_global_opts.cuda_hook_modes & UCS_BIT(mode)) {
if (!(ucm_global_opts.cuda_hook_modes & UCS_BIT(mode))) {
/* Disabled by configuration */
ucm_debug("cuda memory hooks mode %s is disabled for %s API",
ucm_mmap_hook_modes[mode], name);
Expand Down

0 comments on commit 2fd5f72

Please sign in to comment.