Merged PR 1188: SuperScaler: Revise Code - Add copyright headers to some scripts

## Overview

some missed work of cleaning the repo

- Add header to scripts
- remove gpu_simulator's flake8 exclude
This commit is contained in:
Jianfeng Wang 2020-11-27 04:52:11 +00:00
Родитель ffe8a4bd55
Коммит bbe13fb69d
12 изменённых файлов: 37 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.s
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
# because 'docker build' cannot call GPU, so you need to run like this: # because 'docker build' cannot call GPU, so you need to run like this:

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
FROM ubuntu:18.04 FROM ubuntu:18.04
# run test cases (skip gpu parts) automately: # run test cases (skip gpu parts) automately:

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04
# because 'docker build' cannot call GPU, so you need to run like this: # because 'docker build' cannot call GPU, so you need to run like this:

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR cd $DIR
wget -c https://github.com/tensorflow/models/archive/v2.3.0.zip -O models.zip wget -c https://github.com/tensorflow/models/archive/v2.3.0.zip -O models.zip

Просмотреть файл

@ -1,5 +1,4 @@
[flake8] [flake8]
exclude = exclude =
build build
.* .*
gpu_simulator

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
import os import os
import subprocess import subprocess
from setuptools import setup, find_packages, Extension from setuptools import setup, find_packages, Extension

Просмотреть файл

@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#ifdef GPU_SWITCH #ifdef GPU_SWITCH
#include <cstdio> #include <cstdio>

Просмотреть файл

@ -1,3 +1,7 @@
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
find_package(GTest) find_package(GTest)
if(NOT GTest_FOUND) if(NOT GTest_FOUND)
configure_file(googletest.cmake.in googletest-download/CMakeLists.txt) configure_file(googletest.cmake.in googletest-download/CMakeLists.txt)

Просмотреть файл

@ -1,3 +1,7 @@
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
cmake_minimum_required(VERSION 2.8.2) cmake_minimum_required(VERSION 2.8.2)
project(googletest-download NONE) project(googletest-download NONE)

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
set(GTEST_PARALLEL_DIR gtest-parallel-download) set(GTEST_PARALLEL_DIR gtest-parallel-download)
configure_file(gtest-parallel.cmake.in ${GTEST_PARALLEL_DIR}/CMakeLists.txt) configure_file(gtest-parallel.cmake.in ${GTEST_PARALLEL_DIR}/CMakeLists.txt)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
cmake_minimum_required(VERSION 2.8.2) cmake_minimum_required(VERSION 2.8.2)
project(gtest-parallel-download NONE) project(gtest-parallel-download NONE)

Просмотреть файл

@ -1,6 +1,9 @@
#!/bin/bash #!/bin/bash
# execute this script at the root dir of SuperScaler project
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
# execute this script at the root dir of SuperScaler project
# function to display commands # function to display commands
exe() { echo "\$ ${@/eval/}" ; "$@" ; } exe() { echo "\$ ${@/eval/}" ; "$@" ; }