Skip to content

Commit

Permalink
cuda: disable CUDA plugin for pre-dump
Browse files Browse the repository at this point in the history
Temporarily disable CUDA plugin for `criu pre-dump`.

pre-dump currently fails with the following error:

Handling VMA with the following smaps entry: 1822c000-18da5000 rw-p 00000000 00:00 0                                  [heap]
Handling VMA with the following smaps entry: 200000000-200200000 ---p 00000000 00:00 0
Handling VMA with the following smaps entry: 200200000-200400000 rw-s 00000000 00:06 895                              /dev/nvidia0
Error (criu/proc_parse.c:116): handle_device_vma plugin failed: No such file or directory
Error (criu/proc_parse.c:632): Can't handle non-regular mapping on 705693's map 200200000
Error (criu/cr-dump.c:1486): Collect mappings (pid: 705693) failed with -1

We plan to enable support for pre-dump by skipping nvidia mappings
in a separate patch.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
  • Loading branch information
rst0git committed Jan 19, 2025
1 parent 4c39f68 commit 1845d48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/cuda/cuda_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,12 @@ int cuda_plugin_init(int stage)
{
int ret;

/* Disable CUDA checkpointing with pre-dump */
if (stage == CR_PLUGIN_STAGE__PRE_DUMP) {
plugin_disabled = true;
return 0;
}

if (stage == CR_PLUGIN_STAGE__RESTORE) {
if (!check_and_remove_inventory_plugin(CR_PLUGIN_DESC.name, strlen(CR_PLUGIN_DESC.name))) {
plugin_disabled = true;
Expand Down

0 comments on commit 1845d48

Please sign in to comment.