当前位置: 首页 > news >正文

nv docker image 下载与使用命令备忘

1,系统需求

Requirements for GPU Simulation ¶

GPU Architectures

Volta, Turing, Ampere, Ada, Hopper

NVIDIA GPU with Compute Capability

7.0+

CUDA

11.x (Driver 470.57.02+), 12.x (Driver 525.60.13+)

Supported Systems ¶

CPU architectures

x86_64, ARM64

Operating System

Linux

Tested Distributions

CentOS 8; Debian 11, 12; Fedora 38, 39; OpenSUSE/SLED/SLES 15.5, 15.6; RHEL 8, 9; Rocky 8, 9; Ubuntu 22.04, 24.04

Python versions

3.10+

2,下载使用

量子计算模拟软件 docker image

下载docker image:

sudo docker pull nvcr.io/nvidia/quantum/cuda-quantum:cu12-0.9.0
 

创建容器的命令:

sudo docker run --gpus all -it --name cudaq_LHL_01 -v /home/hanmeimei//exe:/home/cudaq/exe nvcr.io/nvidia/quantum/cuda-quantum:cu12-0.9.0

3,vic


install gfortran

/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libz.a(deflate.o): relocation R_X86_64_PC32 against symbol `z_errmsg' can not be used when making a shared object; recompile with -fPIC
build libz and install
mv /urs/lib/x86-..../libz.*** backup_libz.***
git clone https://github.com/madler/zlib.git
cd zlib
git checkout v1.3.1
CFLAGS="-fPIC" ./configure 
make -j
make install


libunwind.so.1: cannot open shared object file: No such file or directory

cd /usr/lib/x86_64-linux-gnu
ln -s libunwind.so.1 libunwind.so.8


curl-8.5.0.tar.gz


#build c++ cudaq

#1.

export ROOT_INSTALL=/home/cudaq/tmp1
export CUDAQ_INSTALL_PREFIX=${ROOT_INSTALL}/local/cudaq
export CUQUANTUM_INSTALL_PREFIX=${ROOT_INSTALL}/local/cuquantum
export CUTENSOR_INSTALL_PREFIX=${ROOT_INSTALL}/local/cutensor
export LLVM_INSTALL_PREFIX=${ROOT_INSTALL}/local/llvm
export BLAS_INSTALL_PREFIX=${ROOT_INSTALL}/local/blas
export ZLIB_INSTALL_PREFIX=${ROOT_INSTALL}/local/zlib
export OPENSSL_INSTALL_PREFIX=${ROOT_INSTALL}/local/openssl
export CURL_INSTALL_PREFIX=${ROOT_INSTALL}/local/curl
export AWS_INSTALL_PREFIX=${ROOT_INSTALL}/local/aws

#2.
#export GCC_TOOLCHAIN=/opt/rh/gcc-toolset-11/root/usr/
#must set for GPU acceleration:

export GCC_TOOLCHAIN=/usr
export CXX="${GCC_TOOLCHAIN}/bin/g++"
export CC="${GCC_TOOLCHAIN}/bin/gcc"
export CUDACXX=/usr/local/cuda/bin/nvcc
export CUDAHOSTCXX="${GCC_TOOLCHAIN}/bin/g++"



如果source code locates in /home/cudaq/tmp1/cuda-quantum:

git config --global --add safe.directory /home/cudaq/tmp1/cuda-quantum

CUDAQ_ENABLE_STATIC_LINKING=TRUE \
CUDAQ_REQUIRE_OPENMP=TRUE \
CUDAQ_WERROR=TRUE \
CUDAQ_PYTHON_SUPPORT=OFF \
LLVM_PROJECTS='clang;flang;lld;mlir;openmp;runtimes' \
bash scripts/build_cudaq.sh -t llvm -v















相关文章:

  • MySQL-增删改查
  • Selenium 与 Coze 集成
  • java.2.25
  • Linux中的cgdb的基本使用
  • 剑指offer - 面试题11 旋转数组的最小数字
  • 华为机试牛客刷题之HJ76 尼科彻斯定理
  • Docker 搭建 Gitlab 服务器 (完整详细版)
  • VScode 开发
  • [算法--前缀和] 和可以被K整除的子数组
  • 软考高级【网络规划设计师】 综合知识
  • 使用Python开发PDF文本提取工具
  • 安装vm和centOS
  • Java进阶学习笔记23——API概述
  • Docker打包Python项目
  • Vue 中动态实现进度条
  • PV Elite 27是专业的压力容器和热交换器设计解决方案
  • 数据分析——Pandas 中的 apply() 函数
  • MySQL 中的事务隔离级别有哪些?MySQL 默认的事务隔离级别是什么?为什么选择这个级别?数据库的脏读、不可重复读和幻读分别是什么?
  • 【System Verilog and UVM基础入门26】Verdi使用教程指南
  • Linux常用命令汇总
  • 深圳网站制作培训/南京关键词seo公司
  • 网站关键词库是怎么做的/怎么建个网站
  • 怎么把网站制作成app/郑州网络推广方案
  • wordpress博客转换小程序/seo外包网络公司
  • 网站顶部怎么做新浪链接/seo技术助理
  • 网站建设 技术可行性/nba最新赛程