Skip to content

add warning to the nvjitlink ctor when falling back to cuLink - #315

Merged
keenan-simpson merged 1 commit into
NVIDIA:mainfrom
keenan-simpson:nvjitlink-warning
Jan 2, 2025
Merged

add warning to the nvjitlink ctor when falling back to cuLink#315
keenan-simpson merged 1 commit into
NVIDIA:mainfrom
keenan-simpson:nvjitlink-warning

Conversation

@keenan-simpson

@keenan-simpsonkeenan-simpson commented Dec 19, 2024

Copy link
Copy Markdown
Contributor

close#303

Add a warning when we fall back to cuLink

@copy-pr-bot

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@keenan-simpsonkeenan-simpson self-assigned this Dec 19, 2024
@keenan-simpsonkeenan-simpson added enhancement Any code-related improvements cuda.core Everything related to the cuda.core module labels Dec 19, 2024
@leofangleofang linked an issue Dec 20, 2024 that may be closed by this pull request
@leofangleofang added this to the cuda.core beta 3 milestone Dec 20, 2024
@leofangleofang added the P1 Medium priority - Should do label Dec 26, 2024
@keenan-simpson

Copy link
Copy Markdown
ContributorAuthor

/ok to test

@keenan-simpson
keenan-simpson marked this pull request as ready for review January 1, 2025 22:00

@leofangleofang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, Keenan, LGTM!

warnings.warn(
"nvJitLink is not installed or too old (<12.3). Therefore it is not usable "
"and the culink APIs will be used instead.",
stacklevel=3,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Q: Is stacklevel=2 not enough? I always forget which level is the right choice, but I'd prefer to not print out the cuda.core internal as part of the traceback.

@keenan-simpson
keenan-simpson merged commit 5b98fdc into NVIDIA:mainJan 2, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvementsP1Medium priority - Should do

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime checks for nvJitLink need to be tighten up

2 participants

@keenan-simpson@leofang