You need to sign in or sign up before continuing.
test.sh 652 Bytes
Newer Older
Przemek Tredak's avatar
Przemek Tredak committed
1
2
3
4
5
6
7
8
9
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# See LICENSE for license information.

set -e

: "${TE_PATH:=/opt/transformerengine}"

pip install cpplint==1.6.0 pylint==2.13.5
10
11
12
13
14
15
16
17
18
if [ -z "${PYTHON_ONLY}" ]
then
  echo "Checking common API headers"
  cd $TE_PATH && \
  cpplint --root transformer_engine/common/include --recursive transformer_engine/common/include
  echo "Checking C++ files"
  cd $TE_PATH && \
  cpplint --recursive --exclude=transformer_engine/common/include transformer_engine
fi
19
20
21
22
23
24
if [ -z "${CPP_ONLY}" ]
then
  echo "Checking Python files"
  cd $TE_PATH && \
  pylint --recursive=y transformer_engine
fi