Skip to content

fix(pegaflow-core): suppress harmless cudaErrorCudartUnloading warning during shutdown#306

Merged
xiaguan merged 1 commit into
novitalabs:masterfrom
Dayuxiaoshui:master
May 31, 2026
Merged

fix(pegaflow-core): suppress harmless cudaErrorCudartUnloading warning during shutdown#306
xiaguan merged 1 commit into
novitalabs:masterfrom
Dayuxiaoshui:master

Conversation

@Dayuxiaoshui
Copy link
Copy Markdown
Contributor

During process shutdown, the CUDA runtime may tear down before Rust destructors run, causing cudaFreeHost and cudaHostUnregister in PinnedMemory::Drop to fail with cudaErrorCudartUnloading. Since CUDA automatically reclaims all pinned memory during runtime teardown, this error is harmless but prints a noisy warning.

Silence the warning by skipping the error print when the error is cudaErrorCudartUnloading.

Closes #217

…g during shutdown

During process shutdown, the CUDA runtime may tear down before Rust
destructors run, causing cudaFreeHost and cudaHostUnregister in
PinnedMemory::Drop to fail with cudaErrorCudartUnloading. Since CUDA
automatically reclaims all pinned memory during runtime teardown, this
error is harmless but prints a noisy warning.

Silence the warning by skipping the error print when the error is
cudaErrorCudartUnloading.

Closes novitalabs#217
Copy link
Copy Markdown
Collaborator

@xiaguan xiaguan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xiaguan xiaguan enabled auto-merge (squash) May 31, 2026 13:56
@xiaguan xiaguan merged commit d1ea268 into novitalabs:master May 31, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suppress harmless cudaErrorCudartUnloading warning during shutdown

2 participants