-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REVIEW] Handle ptx
file paths during strings_udf
import
#11862
[REVIEW] Handle ptx
file paths during strings_udf
import
#11862
Conversation
Codecov ReportBase: 87.52% // Head: 87.51% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.10 #11862 +/- ##
================================================
- Coverage 87.52% 87.51% -0.02%
================================================
Files 133 133
Lines 21807 21826 +19
================================================
+ Hits 19087 19100 +13
- Misses 2720 2726 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
native_sms = [] | ||
for f in files: | ||
file_name = os.path.basename(f) | ||
sm_number = int( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can't be a number. SM's aren't all numeric values any more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear the dev.compute_capability
value will always be an integer. ( 75, 80, 90, ... ). But going forward we will see code gen with values like 90a which means they hold sm90 only instructions that can't be used by newer archs
for f in files: | ||
file_name = os.path.basename(f) | ||
sm_number = int( | ||
file_name.rstrip(".ptx").lstrip("shim_").rstrip("-real") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to strip -real
and -virtual
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be best to update the CMake side to transform CMAKE_CUDA_ARCHITECTURES
to be a unique set of architectures without any -real
and -virtual
postfixes so the python loading side has a 1 to 1 mapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing, Thanks!
ptx
file paths ptx
file paths during strings_udf
import
rerun tests |
6f9e5da
to
3011d96
Compare
Description
strings_udf
is currently throwing an error on import when source compiled with only one gpu arch:This PR fixes the above issue and also handles
shim_sm-real.ptx
andshim_sm.ptx
files appropriately.Checklist