Skip to content

Commit

Permalink
OpenXLA-specific changes.
Browse files Browse the repository at this point in the history
- Add `BUILD` files.
- Remove `python/` folder.
- Disable short pointer.
- Fixup expensiveLoadOrStore().
  • Loading branch information
chsigg committed May 30, 2023
1 parent f29838a commit 39ff695
Show file tree
Hide file tree
Showing 90 changed files with 681 additions and 40,488 deletions.
620 changes: 620 additions & 0 deletions BUILD

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions lib/Dialect/TritonGPU/Transforms/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ bool expensiveLoadOrStore(Operation *op, Attribute &targetEncoding) {
// same
if (isSingleValue(op->getOperand(0)))
return false;
// TODO(manany): Investigate with Openai why the change here
// https://github.com/openai/triton/commit/640f3c392184cd14291c1bca6a4795eb0f32a61a
// which introduces Case 2 causes breakage to this test
// //third_party/py/jax_triton/tests:pallas_test_sm80 --test_filter=test_fused_attention_bwd
return true;
// Case 2: Tensor of pointers has more threads than elements
// we can presume a high hit-rate that makes it cheap to load
auto ptrType = op->getOperand(0).getType().cast<RankedTensorType>();
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/PTX/PTXTranslation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ std::string translateLLVMIRToPTX(llvm::Module &module, int cc, int version) {
auto *shortPtr =
static_cast<llvm::cl::opt<bool> *>(options["nvptx-short-ptr"]);
assert(shortPtr);
shortPtr->setValue(true);
shortPtr->setValue(false);
std::string sm = cc == 90 ? "sm_90a" : "sm_" + std::to_string(cc);
// max PTX version
int ptxMajor = maxPTX / 10;
Expand Down
4 changes: 0 additions & 4 deletions python/MANIFEST.in

This file was deleted.

Empty file removed python/README.md
Empty file.
18 changes: 0 additions & 18 deletions python/examples/copy_strided.py

This file was deleted.

13 changes: 0 additions & 13 deletions python/examples/empty.py

This file was deleted.

8 changes: 0 additions & 8 deletions python/pyproject.toml

This file was deleted.

305 changes: 0 additions & 305 deletions python/setup.py

This file was deleted.

17 changes: 0 additions & 17 deletions python/src/extra/cuda.ll

This file was deleted.

Loading

0 comments on commit 39ff695

Please sign in to comment.