Aganlengzi / AscendCL_OpTest

sample and log files for ascend 910 ops

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ascend910 OP Test Samples

How to Run

Pre-requisites: a server with Ascend910, refer to https://www.hiascend.com/software/cann/community

  1. Get runtime docker image

Note: the installed CANN version in this image is '5.0.2.alpha005'.

# x86_64 host
docker pull qili93/develop:latest-dev-cann5.0.2.alpha005-gcc82-x86_64

# aarch64 host
docker pull qili93/develop:latest-dev-cann5.0.2.alpha005-gcc82-aarch64
  1. Start docker container
docker run -it --name qili93-dev-npu -v /home/<username>:/workspace \
           --pids-limit 409600 --network=host --shm-size=128G \
           --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
           --device=/dev/davinci2 \ # Note: change this if need to mapping other device ID
           --device=/dev/davinci_manager \
           --device=/dev/devmm_svm \
           --device=/dev/hisi_hdc \
           -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \
           -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
           -v /usr/local/dcmi:/usr/local/dcmi \
           qili93/develop:latest-dev-cann5.0.2.alpha005-gcc82-x86_64 /bin/bash
  1. Compile and run by run_demo.sh, for example:
# Run Add OP
sh run_demo.sh Add

# Run ResizeNearestNeighborV2 OP
sh run_demo.sh ResizeNearestNeighborV2
  1. Tracking issues here (i.e. issue links to Ascend community)

About

sample and log files for ascend 910 ops


Languages

Language:C++ 94.7%Language:CMake 4.0%Language:Shell 1.4%