This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- Eigen/src/Core/arch/CUDA/Half.h 2018-06-22 18:09:44.000000000 -0400 | |
| +++ Eigen/src/Core/arch/CUDA/Half.h 2018-07-25 01:19:55.462313100 -0400 | |
| @@ -209,7 +209,7 @@ | |
| // conversion steps back and forth. | |
| EIGEN_STRONG_INLINE __device__ half operator + (const half& a, const half& b) { | |
| - return __hadd(a, b); | |
| + return __hadd(::__half(a), ::__half(b)); | |
| } | |
| EIGEN_STRONG_INLINE __device__ half operator * (const half& a, const half& b) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # cool_gpu2.sh This script will enable or disable fixed gpu fan speed | |
| # | |
| # Description: A script to control GPU fan speed on headless (non-X) linux nodes | |
| # Original Script by Axel Kohlmeyer <[email protected]> | |
| # https://sites.google.com/site/akohlmey/random-hacks/nvidia-gpu-coolness | |
| # | |
| # Modified for newer drivers and removed old work-arounds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Install CUDA Toolkit 10 | |
| wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
| sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && sudo apt update | |
| sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb | |
| sudo apt update | |
| sudo apt install -y cuda |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt update | |
| sudo apt -y install build-essential | |
| sudo apt -y install linux-headers-$(uname -r) | |
| wget -N https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.168_418.67_linux.run | |
| wget -N http://developer.download.nvidia.com/compute/redist/cudnn/v7.6.0/cudnn-10.1-linux-x64-v7.6.0.64.tgz | |
| wget -N https://developer.download.nvidia.com/compute/redist/nccl/v2.4/nccl_2.4.7-1+cuda10.1_x86_64.txz | |
| #Disable nouveau driver | |
| echo "blacklist nouveau" | sudo tee -a /etc/modprobe.d/blacklist-nouveau.conf > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # pyTorch install script for NVIDIA Jetson TX1/TX2, | |
| # from a fresh flashing of JetPack 2.3.1 / JetPack 3.0 / JetPack 3.1 / JetPack 4.2 | |
| # | |
| # for the full source, see jetson-reinforcement repo: | |
| # https://github.com/dusty-nv/jetson-reinforcement/blob/master/CMakePreBuild.sh | |
| # | |
| # note: pyTorch documentation calls for use of Anaconda, | |
| # however Anaconda isn't available for aarch64. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding=utf-8 | |
| # Python3.6 | |
| # Class Record a wav in new thread | |
| import threading | |
| import pyaudio | |
| import wave | |
| from time import sleep | |
| class RecordThread(threading.Thread): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import win32com.client | |
| speaker = win32com.client.Dispatch("SAPI.SpVoice") | |
| while 1: | |
| print('Enter the Word') | |
| #可用中文、英文 | |
| s = input( ) | |
| speaker.Speak(s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #just proxy for github.com | |
| git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1080 | |
| git config --global http.https://git.521000.best.sslVerify false | |
| git config --global https.https://git.521000.best.proxy socks5://127.0.0.1:1080 | |
| git config --global https.https://git.521000.best.sslVerify false | |
| #cancel proxy | |
| git config --global --unset http.https://git.521000.best.proxy | |
| git config --global --unset http.https://git.521000.best.sslVerify | |
| git config --global --unset https.https://git.521000.best.proxy |
OlderNewer