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 committed May 4, 2023
1 parent e18886f commit 5b63e5b
Show file tree
Hide file tree
Showing 81 changed files with 679 additions and 38,677 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
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 5b63e5b

Please sign in to comment.