CogDL icon indicating copy to clipboard operation
CogDL copied to clipboard

导入CogDL及其子模块的时间非常长/It takes a long time to import CogDL and its sub-modules

Open FrancisGrace opened this issue 2 years ago • 6 comments

🐛 Bug

执行导入CogDL及其子模块语句的时间非常长。 It takes a long time to import CogDL and its sub-modules.

To Reproduce

Steps to reproduce the behavior:

import cogdl
print('Hello World!')

运行此代码后五分钟内未输出“Hello World!”。 After running the code, 'Hello World!' are not printed in 5 minutes.

Expected behavior

运行此代码后立刻输出“Hello World!”。 After running the code, 'Hello World!' should be printed immediately.

Environment

  • CogDL version: 0.5.3(使用v0.5.0正常/behaves normally in v0.5.0)
  • OS (e.g., Linux): Windows 10
  • Python version: 3.8.13
  • PyTorch version: 1.11.0
  • CUDA/cuDNN version (if applicable): CUDA 11.1
  • Any other relevant information: None

Additional context

FrancisGrace avatar Sep 20 '22 01:09 FrancisGrace

Hi @FrancisGrace,

我猜测是在编译cogdl的稀疏算子,能否看一下~/.cache/torch_extensions里的情况。

cenyk1230 avatar Sep 20 '22 12:09 cenyk1230

第一次导入的时候需要对底层算子进行编译,所以需要花费几分钟。后续导入的话应该就会比较快。

THINK2TRY avatar Sep 22 '22 14:09 THINK2TRY

🐛 Bug

执行导入CogDL及其子模块语句的时间非常长。 It takes a long time to import CogDL and its sub-modules.

To Reproduce

Steps to reproduce the behavior:

import cogdl
print('Hello World!')

运行此代码后五分钟内未输出“Hello World!”。 After running the code, 'Hello World!' are not printed in 5 minutes.

Expected behavior

运行此代码后立刻输出“Hello World!”。 After running the code, 'Hello World!' should be printed immediately.

Environment

  • CogDL version: 0.5.3(使用v0.5.0正常/behaves normally in v0.5.0)
  • OS (e.g., Linux): Windows 10
  • Python version: 3.8.13
  • PyTorch version: 1.11.0
  • CUDA/cuDNN version (if applicable): CUDA 11.1
  • Any other relevant information: None

Additional context

我也遇到了此问题,请问你解决了吗?

zhanghaoxuan184 avatar Sep 26 '22 12:09 zhanghaoxuan184

是重装cogdl之后出现的这种情况吗

QingFei1 avatar Sep 27 '22 09:09 QingFei1

并不是,我前段时间用的时候还没问题,有一段时间没用之后再运行导入时间就变得很长,我现在将cogdl改成了0.5.0版本就可以快速运行了

zhanghaoxuan184 avatar Sep 27 '22 09:09 zhanghaoxuan184

我这里也是不知道如何解决。一直卡在导入中

Doehong avatar Feb 06 '23 03:02 Doehong