forked from triton-lang/triton
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Float8E4M3FNUZ -> Float8E4M3FN for NVIDIA PTX #8
Closed
+2,133
−103
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
54da2bf
[BACKEND] Update LLVM version to https://github.com/llvm/llvm-project…
vwbaker cc5f6a3
[BACKEND] Update LLVM version to https://github.com/llvm/llvm-project…
gflegar 04b0b9c
[BACKEND] Update LLVM version to https://github.com/llvm/llvm-project…
reichlfl 5e26bcf
[BACKEND] Update LLVM version to https://github.com/llvm/llvm-project…
karupayun f5cd2cf
[BACKEND] Update LLVM version to https://github.com/llvm/llvm-project…
chsigg 803c588
[BACKEND] Update LLVM version to https://github.com/llvm/llvm-project…
vwbaker 1036fb7
OpenXLA-specific changes
vwbaker bc0f7b5
Float8E4M3FNUZ -> Float8E4M3FN for NVIDIA PTX
acollins3 6d28f27
Revert formatting change
acollins3 4848464
Remove comment
acollins3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4713bd4ccc0c0d568f92916e7851d993291742c0 | ||
4c5ef6690040383956461828457ac27f7f912edb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# NOTE: Do not depend on any targets from this directory, | ||
# but use //third_party/py/triton instead. | ||
|
||
load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") | ||
|
||
package( | ||
default_applicable_licenses = ["//:license"], | ||
default_visibility = [ | ||
"//third_party/py/triton:__pkg__", | ||
"@triton//python:__subpackages__", | ||
], | ||
) | ||
|
||
cc_library( | ||
name = "passes", | ||
hdrs = ["src/passes.h"], | ||
includes = ["src"], | ||
visibility = ["@triton//third_party:__subpackages__"], | ||
) | ||
|
||
pybind_extension( | ||
name = "libtriton", | ||
srcs = [ | ||
"src/interpreter.cc", | ||
"src/ir.cc", | ||
"src/llvm.cc", | ||
"src/main.cc", | ||
"src/passes.cc", | ||
], | ||
copts = ["-DTRITON_BACKENDS_TUPLE=(nvidia)"], | ||
deps = [ | ||
":passes", | ||
"@llvm-project//llvm:Core", | ||
"@llvm-project//llvm:IPO", | ||
"@llvm-project//llvm:IRReader", | ||
"@llvm-project//llvm:InstCombine", | ||
"@llvm-project//llvm:Linker", | ||
"@llvm-project//llvm:MC", | ||
"@llvm-project//llvm:Passes", | ||
"@llvm-project//llvm:Support", | ||
"@llvm-project//llvm:Target", | ||
"@llvm-project//mlir:BuiltinToLLVMIRTranslation", | ||
"@llvm-project//mlir:BytecodeWriter", | ||
"@llvm-project//mlir:ControlFlowDialect", | ||
"@llvm-project//mlir:ConversionPasses", | ||
"@llvm-project//mlir:IR", | ||
"@llvm-project//mlir:IndexDialect", | ||
"@llvm-project//mlir:LLVMDialect", | ||
"@llvm-project//mlir:LLVMToLLVMIRTranslation", | ||
"@llvm-project//mlir:NVVMToLLVMIRTranslation", | ||
"@llvm-project//mlir:Parser", | ||
"@llvm-project//mlir:Pass", | ||
"@llvm-project//mlir:Support", | ||
"@llvm-project//mlir:ToLLVMIRTranslation", | ||
"@llvm-project//mlir:Transforms", | ||
"//:TritonAnalysis", | ||
"//:TritonDialects", | ||
"//:TritonGPUToLLVM", | ||
"//:TritonGPUTransforms", | ||
"//:TritonHSACO", | ||
"//:TritonLLVMIR", | ||
"//:TritonNvidiaGPUTransforms", | ||
"//:TritonPTX", | ||
"//:TritonToTritonGPU", | ||
"//:TritonTools", | ||
"//:TritonTransforms", | ||
"@triton//third_party/nvidia:triton_nvidia", | ||
], | ||
) | ||
|
||
filegroup( | ||
name = "files", | ||
srcs = glob( | ||
include = ["triton/**/*.py"], | ||
), | ||
) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should
F8E4M3FNUZ
really need to be removed?Also below, in some places
F8E4M3FN
got added, in other placesF8E4M3FNUZ
is being replaced. It would be good to explain what we want in the PR description and apply it consistently. Or maybe I'm missing something and this is all intentional?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.
F8E4M3FNUZ
needs to be listed here, as we want likely want support for it on other platforms (although I haven't tested this).In places where it is NVIDIA PTX targetted, we replace
F8E4M3FNUZ
withF8E4M3FN
, and in other "generic" places we addF8E4M3FN