Skip to content

Commit

Permalink
Update string format
Browse files Browse the repository at this point in the history
Co-authored-by: Aarni Koskela <[email protected]>
  • Loading branch information
pnunna93 and akx authored Jul 31, 2024
1 parent b123125 commit db1df72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitsandbytes/cextension.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_native_library() -> BNBNativeLibrary:
if torch.version.hip:
hip_major, hip_minor = map(int, torch.version.hip.split(".")[0:2])
HIP_ENVIRONMENT, BNB_HIP_VERSION = True, hip_major * 100 + hip_minor
BNB_HIP_VERSION_SHORT = str(hip_major) + str(hip_minor)
BNB_HIP_VERSION_SHORT = f"{hip_major}{hip_minor}"
else:
HIP_ENVIRONMENT, BNB_HIP_VERSION = False, 0
BNB_HIP_VERSION_SHORT = ""
Expand Down

0 comments on commit db1df72

Please sign in to comment.