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:
Родитель
ffe8a4bd55
Коммит
bbe13fb69d
|
@ -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
|
|
3
setup.py
3
setup.py
|
@ -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/}" ; "$@" ; }
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче