Jittor / jittor

Jittor is a high-performance deep learning framework based on JIT compiling and meta-operators.
https://cg.cs.tsinghua.edu.cn/jittor/
Apache License 2.0
3.1k stars 313 forks source link

安装报错 #1

Open marsggbo opened 4 years ago

marsggbo commented 4 years ago

安装命令

git clone https://github.com/Jittor/jittor.git && with_clang=1 with_cuda=1 bash ./jittor/script/install.sh

报错信息

Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://nvidia.github.io/libnvidia-container/ubuntu18.04/amd64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6ED91CA3AC1160CD
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://nvidia.github.io/nvidia-container-runtime/ubuntu18.04/amd64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6ED91CA3AC1160CD
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 6ED91CA3AC1160CD
E: Repository 'https://download.docker.com/linux/ubuntu bionic InRelease' changed its 'Label' value from 'Docker EE' to 'Docker CE'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Jittor commented 4 years ago

似乎是您的docker的源在apt update时候出的问题,请确保您可以apt update

Jittor commented 4 years ago

您可以试图删除安装脚本里的apt update来安装,或者使用手动安装,如果有问题欢迎在这个issue下面继续留言

marsggbo commented 4 years ago

我现在是在实验室服务器上安装的,如果没有root权限怎么安装呢?我看install.sh里很多命令要用到sudo

cxjyxxme commented 4 years ago

我现在是在实验室服务器上安装的,如果没有root权限怎么安装呢?我看install.sh里很多命令要用到sudo

您可以尝试用pip安装

marsggbo commented 4 years ago

@cxjyxxme 我用这个命令pip install https://github.com/Jittor/jittor.git安装后还是报错

ERROR: Cannot unpack file /tmp/pip-unpack-55503bi6/jittor.git (downloaded from /tmp/pip-req-build-eh6xtfc3, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /tmp/pip-req-build-eh6xtfc3
Jittor commented 4 years ago

似乎是安装命令的问题 python3.7 -m pip install git+https://github.com/Jittor/jittor.git

marsggbo commented 4 years ago

@Jittor 安装好像是安装上了,但是在ipython里import的时候又报这个错。。。


In [1]: import jittor as jt
[i 0320 16:37:35.018284 68 v1 __init__.py:102] Run cmd: which g++
[i 0320 16:37:35.021636 68 v1 __init__.py:102] Run cmd: /usr/bin/g++ --version
[i 0320 16:37:35.026407 68 __init__.py:183] Found g++(7.4.0) at /usr/bin/g++.
[i 0320 16:37:35.026589 68 v1 __init__.py:102] Run cmd: git branch
fatal: not a git repository (or any of the parent directories): .git
[i 0320 16:37:35.043590 88 __init__.py:183] Found /usr/local/cuda/bin/nvcc(10.0.130) at /usr/local/cuda/bin/nvcc.
[i 0320 16:37:35.099030 88 __init__.py:183] Found gdb(8.1.0) at /usr/bin/gdb.
[i 0320 16:37:35.107893 88 __init__.py:183] Found addr2line(2.30) at /usr/bin/addr2line.
[i 0320 16:37:35.395567 88 compiler.py:802] pybind_include: -I/home/xinhe/anaconda3/envs/torchline/include/python3.7m -I/home/xinhe/anaconda3/envs/torchline/include
[i 0320 16:37:35.412710 88 compiler.py:804] extension_suffix: .cpython-37m-x86_64-linux-gnu.so
[i 0320 16:37:35.726645 88 cuda_flags.cc:19] CUDA disabled.
[i 0320 16:37:35.726708 88 jit_compiler.cc:20] Load cc_path: /usr/bin/g++
CUDA error at /home/xinhe/anaconda3/envs/torchline/lib/python3.7/site-packages/jittor/src/ops/array_op.cc:29 code=2(cudaErrorMemoryAllocation) "cudaStreamCreateWithFlags(&stream, cudaStreamNonBlocking)"
terminate called after throwing an instance of 'std::runtime_error'
  what():  CUDA error
Aborted (core dumped)
marsggbo commented 4 years ago

实验室服务器上有4个GPU,刚才试了一下要输入CUDA_VISIBLE_DEVICES=0 ipythonimport jittor就没有报错了,然后每次重启ipython后再次导入jittor都会输出如下信息

image

cxjyxxme commented 4 years ago

您好,这些是每次import在初始化时输出的追踪信息,属于正常情况,请问运行过程中还有还有别的什么问题吗?