Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 1 addition & 24 deletions .github/actions/setup-npu-test-env/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Setup NPU Test Environment'
description: 'Common environment setup for NPU upstream tests - checkout, install torch_npu, download test source, apply patches'
description: 'Common environment setup for NPU upstream tests - install torch_npu, download test source'

inputs:
python_version:
Expand All @@ -14,11 +14,6 @@ inputs:
required: true
type: string
description: Name of the prepared test source artifact
patch_log_suffix:
required: false
type: string
default: 'setup'
description: Suffix for torch_env_patch log filename

runs:
using: 'composite'
Expand Down Expand Up @@ -90,22 +85,4 @@ runs:
print(f'NPU count: {torch.npu.device_count()}')
"

- name: Apply torch environment patches
shell: bash
run: |
source /usr/local/Ascend/cann/set_env.sh 2>/dev/null || true
source /usr/local/Ascend/nnal/atb/set_env.sh 2>/dev/null || true

cd pytorch-test-src/test_upstream
chmod +x torch_env_patch.sh

echo "=== Applying torch environment patches ==="
set +e
./torch_env_patch.sh --python=${{ inputs.python_version }} 2>&1 | tee /tmp/torch_env_patch_${{ inputs.patch_log_suffix }}.log
PATCH_STATUS=${PIPESTATUS[0]}
set -e

if [ ${PATCH_STATUS} -ne 0 ]; then
echo "WARNING: Torch environment patch application returned non-zero status: ${PATCH_STATUS}"
echo "Tests will continue, but some may fail due to missing patches"
fi
Binary file not shown.
Binary file not shown.
Binary file not shown.
98 changes: 98 additions & 0 deletions .github/scripts/conf/ops.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
aclnnVarMean
log1p
log10
InpalceIndexAdd
eye
bernoulli
aclnnUpsampleBilinear2d
aclnnUpsampleBicubic2d
aclnnUpsampleBilinear2dAA
aclnnTrunc
aclnnUpsampleBicubic2dAA
aclnnTriu
aclnnSWhere
aclnnSort
aclnnSign
aclnnTril
aclnnTriangularSolve
aclnnTan
aclnnSub
aclnnSinh
aclnnSin
aclnnRsqrt
aclnnRemainderTensorTensor
aclnnRemainderTensorScalar
aclnnPowTensorTensor
aclnnGroupNorm
aclnnLogSigmoidForward
aclnnReduceSum
aclnnNeg
aclnnMv
aclnnNormalTensorFloat
aclnnMm
aclnnMul
aclnnMaxPool3dWithArgmax
aclnnReflectionPad2d
aclnnInplaceRemainderTensorTensor
aclnnmatmul
aclnnLogSumExp
aclnnMaxPool2dWithArgmax
aclnnLog1p
aclnnLog
aclnnIsNegInf
aclnnInplaceTrunc
aclnnInplaceTanh
BatchMatMulV2
aclnnInplaceRound
aclnnInplaceReciprocal
aclnnInplaceRandom
aclnnInplacePut
aclnnInplaceMaskedFillScalar
aclnnInplaceLog2
aclnnInplaceLog
aclnnInplaceFrac
aclnnInplaceFloor
aclnnInplaceCos
BNInfer
aclnnInplaceCopy
aclnnInplaceAtan
aclnnInplaceAsinh
aclnnInplaceAcos
aclnnIndexSelect
aclnnIndexCopy
aclnnIndexAdd
aclnnHistc
aclnnHardshrink
aclnnGcd
aclnnGather
aclnnExpm1
aclnnEye
aclnnExp
aclnnErfc
aclnnErf
aclnnDot
aclnnEqTensor
aclnnEqScalar
aclnnDropoutDoMask
aclnnConvolutionBackward
aclnnCosh
aclnnCos
aclnnConvolution
aclnnComplex
aclnnCast
aclnnBatchNorm
aclnnBatchMatMul
aclnnBaddbmm
aclnnAtanh
aclnnAsinh
aclnnAsin
aclnnArange
aclnnAll
aclnnAddr
aclnnAddmm
aclnnAddcdiv
aclnnAddbmm
aclnnAdd
aclnnAcosh
aclnnmatmul
aclnnInplacePut
Loading
Loading