mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
fix shift op
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#include "triton/Dialect/Triton/IR/Dialect.h"
|
||||
#include "triton/Dialect/TritonGPU/IR/Dialect.h"
|
||||
#include "triton/Target/LLVMIR/LLVMIRTranslation.h"
|
||||
#include "triton/Target/PTX/PTXTranslation.h"
|
||||
#include "triton/Target/HSACO/HSACOTranslation.h"
|
||||
#include "mlir/ExecutionEngine/ExecutionEngine.h"
|
||||
#include "mlir/ExecutionEngine/OptUtils.h"
|
||||
#include "mlir/IR/AsmState.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/IR/Dialect.h"
|
||||
|
||||
@@ -135,6 +135,7 @@ void init_triton_ir(py::module &&m) {
|
||||
// we load LLVM because the frontend uses LLVM.undef for
|
||||
// some placeholders
|
||||
self.getOrLoadDialect<mlir::LLVM::LLVMDialect>();
|
||||
self.getOrLoadDialect<mlir::tensor::TensorDialect>();
|
||||
});
|
||||
// .def(py::init([](){
|
||||
// mlir::MLIRContext context;
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
# clear
|
||||
set -x
|
||||
|
||||
# export MLIR_ENABLE_DUMP=1
|
||||
# export LLVM_IR_ENABLE_DUMP=1
|
||||
# export AMDGCN_ENABLE_DUMP=1
|
||||
|
||||
# log dir
|
||||
ROOT_DIR=$(pwd)
|
||||
@@ -17,9 +14,11 @@ chmod -R 777 $LOG_DIR
|
||||
sh scripts/amd/clean.sh
|
||||
|
||||
# UNIT_TEST="python/test/unit/language/test_core_amd.py"
|
||||
UNIT_TEST="python/test/unit/language/test_core_amd.py::test_shift_op[int8-int8-<<]"
|
||||
# UNIT_TEST="python/test/unit/language/test_core_amd.py::test_shift_op[int32-int32->>]"
|
||||
# UNIT_TEST="python/test/unit/language/test_core.py::test_empty_kernel[float32]"
|
||||
# UNIT_TEST="python/test/unit/language/test_core.py::test_bin_op"
|
||||
UNIT_TEST="python/test/unit/language/test_core.py::test_bin_op[float32-float32-+]"
|
||||
# UNIT_TEST="python/test/unit/language/test_core.py::test_bin_op[float32-float32-+]"
|
||||
# UNIT_TEST="python/test/unit/language/test_core.py::test_bin_op[int8-float16-%]"
|
||||
# UNIT_TEST="python/test/unit/language/test_elementwise.py"
|
||||
|
||||
@@ -39,3 +38,5 @@ if [ "$1" == "backtrace" ]; then
|
||||
else
|
||||
pytest --capture=tee-sys -rfs --verbose "$UNIT_TEST" 2>&1 | tee $LOG_DIR/unit_test.log
|
||||
fi
|
||||
|
||||
bash scripts/amd/cache_print.sh 2>&1 |tee $LOG_DIR/cache.log
|
||||
|
||||
Reference in New Issue
Block a user