forked from maxjhandsome/jittor
polish readme and install and setup
This commit is contained in:
parent
4dee9cc6fa
commit
43b1e2aada
|
@ -117,13 +117,13 @@ jittor会自动在路径中寻找合适的编译器, 如果您希望手动指定
|
|||
|
||||
```bash
|
||||
# install with clang and cuda
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_clang=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 with_cuda=1 bash
|
||||
# install with clang
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_clang=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 bash
|
||||
# install with g++ and cuda
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_gcc=1 with_cuda=1 bash
|
||||
# install with g++
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_gcc=1 bash
|
||||
```
|
||||
|
||||
执行后,脚本将显示一些需要导出的环境变量。
|
||||
|
|
|
@ -112,13 +112,13 @@ We provide single line command for quick installation the latest version of Jitt
|
|||
|
||||
```bash
|
||||
# install with clang and cuda
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_clang=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 with_cuda=1 bash
|
||||
# install with clang
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_clang=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 bash
|
||||
# install with g++ and cuda
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_gcc=1 with_cuda=1 bash
|
||||
# install with g++
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_gcc=1 bash
|
||||
```
|
||||
After execution, the script will show some environment variables you need to export.
|
||||
|
||||
|
|
|
@ -149,13 +149,13 @@ We provide single line command for quick installation the latest version of Jitt
|
|||
|
||||
```bash
|
||||
# install with clang and cuda
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_clang=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 with_cuda=1 bash
|
||||
# install with clang
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_clang=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 bash
|
||||
# install with g++ and cuda
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_gcc=1 with_cuda=1 bash
|
||||
# install with g++
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz && mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor && with_gcc=1 bash ./jittor/script/install.sh
|
||||
wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_gcc=1 bash
|
||||
```
|
||||
After execution, the script will show some environment variables you need to export.
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/bin/bash
|
||||
# Single line install script
|
||||
# git clone https://github.com/Jittor/jittor.git && with_clang=1 with_cuda=1 bash ./jittor/script/install.sh
|
||||
|
||||
# wget -O - https://raw.githubusercontent.com/Jittor/jittor/master/script/install.sh | with_clang=1 with_cuda=1 bash
|
||||
set -ex
|
||||
|
||||
if [ "$is_docker" = "1" ]; then
|
||||
|
@ -50,12 +49,7 @@ wget -O - https://bootstrap.pypa.io/get-pip.py | sudo -H python$py_version
|
|||
|
||||
# Step 3: Run jittor
|
||||
|
||||
if [ ! -d jittor ]; then
|
||||
wget https://cg.cs.tsinghua.edu.cn/jittor/assets/build/jittor.tgz
|
||||
mkdir -p jittor && tar -xvf ./jittor.tgz -C jittor
|
||||
fi
|
||||
|
||||
sudo python$py_version -m pip install ./jittor
|
||||
sudo python$py_version -m pip install git+https://github.com/Jittor/jittor.git
|
||||
|
||||
if [ "$with_cuda" = "1" ]; then
|
||||
export nvcc_path="/usr/local/cuda/bin/nvcc"
|
||||
|
|
7
setup.py
7
setup.py
|
@ -1,3 +1,10 @@
|
|||
import platform
|
||||
|
||||
error_msg = "Jittor only supports Ubuntu>=16.04 currently."
|
||||
assert hasattr(platform, "linux_distribution"), error_msg
|
||||
dis_name = platform.linux_distribution()[0].lower()
|
||||
version = float(platform.linux_distribution()[1])
|
||||
assert "ubuntu" in dis_name and version >= 16, error_msg
|
||||
|
||||
import setuptools
|
||||
from setuptools import setup, find_packages
|
||||
|
|
Loading…
Reference in New Issue