Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 10528|回复: 0

DouBaBa ProtMD install on ubuntu

[复制链接]

528

主题

597

帖子

3005

积分

论坛元老

Rank: 8Rank: 8

积分
3005
发表于 2022-12-27 10:14:28 | 显示全部楼层 |阅读模式
本帖最后由 meatball1982 于 2022-12-27 10:16 编辑

Install ProtMD on ubuntu
https://github.com/smiles724/ProtMD

Create an env using Conda
as the github, there will "Torch not compiled with CUDA enabled" error.
It costs me almost two days.

  1. conda create -n ProMD python=3.9.10
  2. conda install cudatoolkit=11.3 pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 -c pytorch -c conda-forge
复制代码


https://pytorch.org/get-started/previous-versions/


Error:
Torch not compiled with CUDA enabled

Possible solution:
https://discuss.pytorch.org/t/to ... da-enabled/112467/5
https://github.com/pytorch/pytorch/issues/30664


a test python script
  1. import torch  


  2. device=torch.device('cuda:0')
  3. if device.type != "cpu":
  4.    print("GPU,&&&&")
  5. else:
  6.    print("CPU,&&&&")

  7. print(torch.__version__)
  8. print(torch.version.cuda)
  9. print(torch.cuda.is_available())
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Mathematica中文论坛-非官方 ( 辽ICP备16001491号-1

GMT+8, 2024-4-16 12:43 , Processed in 0.116416 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表