test.sh 764 Bytes
Newer Older
1
# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Przemek Tredak's avatar
Przemek Tredak committed
2
3
4
5
6
7
8
#
# See LICENSE for license information.

set -e

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

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