Skip to content

Commit

Permalink
OpenXLA-specific changes to fork of github.com/openai/triton/tree/llv…
Browse files Browse the repository at this point in the history
…m-head

- Add `BUILD` files.
- Remove `python/` folder.
  • Loading branch information
chsigg authored and Moerafaat committed Apr 14, 2023
1 parent 1e8882e commit 121d8e9
Show file tree
Hide file tree
Showing 43 changed files with 679 additions and 22,543 deletions.
620 changes: 620 additions & 0 deletions BUILD

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/Target/LLVMIR/LLVMIRTranslation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "llvm/IRReader/IRReader.h"
#include "llvm/Linker/Linker.h"
#include "llvm/Support/SourceMgr.h"
#include "third_party/py/triton/google/find_cuda.h"
#include <dlfcn.h>
#include <filesystem>
#include <iterator>
Expand Down Expand Up @@ -163,9 +164,8 @@ static std::map<std::string, std::string> getExternLibs(mlir::ModuleOp module) {
}
return std::filesystem::path(fileinfo.dli_fname);
}();
static const auto runtime_path =
this_library_path.parent_path().parent_path() / "third_party" / "cuda" /
"lib" / "libdevice.10.bc";
static const auto runtime_path = (
fs::path(PathToLibdevice()) / "libdevice.10.bc");
if (fs::exists(runtime_path)) {
externLibs.try_emplace(libdevice, runtime_path.string());
} else {
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
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/setup.cfg

This file was deleted.

11 changes: 0 additions & 11 deletions python/src/main.cc

This file was deleted.

45 changes: 0 additions & 45 deletions python/test/unit/language/assert_helper.py

This file was deleted.

46 changes: 0 additions & 46 deletions python/test/unit/language/print_helper.py

This file was deleted.

102 changes: 0 additions & 102 deletions python/test/unit/language/test_block_pointer.py

This file was deleted.

Loading

0 comments on commit 121d8e9

Please sign in to comment.