Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure Rust running Environment on Tianhe No.2

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to configure the Rust runtime environment on Tianhe II", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to configure the Rust runtime environment on Tianhe II" this article.

Install the Rust operating environment suitable for Tianhe-2 through the Rust standalone package ssh remotely log in to Tianhe No.2 ^ 1 YOUR_CERTIFICATE_ID $ssh-i$ {YOUR_CERTIFICATE_ID}-P$ {SSH_PORT} ${YOUR_USERNAME} @ server.ip.in.vpn to obtain the overcalculated server platform architecture: after [you@tainhe2-H ~] $uname-r understands the platform architecture, obtain the Rust standalone installation package for the corresponding platform, and upload it to Supercomputer. Here, take the x8room64 architecture as an example: $scp-i$ {YOUR_CERTIFICATE_ID}-P$ {SSH_PORT} rust-1.44.0-x86_64-unknown-linux-gnu.tar.gz you@server.ip.in.vpn:~ decompression installation package: [you@tainhe2-H ~] $tar-zxvf rust-1.44.0-x86_64-unknown-linux-gnu.tar.gz switch to the unzipped directory And execute the installation command: [you@tainhe2-H ~] $cd rust-1.44.0-x86_64-unknown-linux-gnu [you@tainhe2-H rust-1.44.0-x86_64-unknown-linux-gnu] $. / install.sh-- prefix=~/rust-- disable-ldconfig-- verbose this command will install Rust in the ~ / rust text folder, and the rust executable will be placed in the ~ / rust/bin folder. Edit ~ / .bashrc Add the following line of configuration: export PATH=$HOME/rust/bin:$PATH to make ~ / .bashrc effective: [you@tainhe2-H ~] $source ~ / .bashrc check whether Rust is installed successfully: [you@tainhe2-H ~] $cargo-- versioncargo 1.44.0 (05d080faa 2020-05-06) offline installation rust-overlaps copy source code in local networking environment: git clone https://github.com/sirkibsirkib/rust-overlaps.git fixes source code Cargo Version ^ 2 of .toml: version = "1.1.0" executes cargo vendor under the code repository directory Get the source code of the dependency ^ 3VRUSTUSTAL overlaps $cargo vendor-the dependencies downloaded by respect-source-config will be stored in the vendor folder. Add the .clients / config file to the rust-overlaps folder to compile with locally cached dependent source code in a supercomputed offline environment: [source.crates-io] replace-with = "vendored-sources"

[source.vendored-sources] directory = "vendor" package the source folder into a .zip package, and then upload it to the supercomputer: $scp-i$ {YOUR_CERTIFICATE_ID}-P$ {SSH_PORT} rust-overlaps.zip you@server.ip.in.vpn:~ decompress: [you@tainhe2-H ~] $unzip rust-overlaps.zip offline installation ^ 3: [you@tainhe2-H ~] $cd rust-overlaps [you@tainhe2-H rust-overlaps] $cargo install-- path. -- offline checks whether the installation is successful: [you@tainhe2-H ~] $rust-overlaps-- versionASPOPsolver 1.0 is all the contents of the article "how to configure the Rust runtime environment on Tianhe No.2". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report