HPC technologies short overview, Linux C/C++ development environment configuration (cont)

Опубликовано: 24 Октябрь 2024
на канале: Andriy Lutskiv
20
1

Linux:
Getting Started
Parallel and distributed environment
main commands
program installation
apt ("PlayMarket" for Linux)
sudo apt-get update
sudo date -s "22 MAR 2021 14:13:00"

sudo apt-get dist-upgrade
sudo apt-get install file_name

IP
check network availability
ip a
ping 8.8.8.8
ping gmail.com
mtr gmail.com


directories, files, copy, move, create, remove, link
ls (list files)
ls -l (ext. list files)
pwd (print current directory)
touch file_name (create)
cp file_name1 file_name2 (copy)
mv file_name1 dir2/file_name2 (move/rename)
rm file_name1 (remove)
ln -s file_name1 file-symbol1
ln file_name1 file-hard1

code edit
mcedit
compilation
gcc, OpenMP

gcc file.c -fopenmp -o myprogram.run -lm
export OMP_NUM_THREADS=8
./myprogram.run

VirtualBox image:

https://drive.google.com/file/d/1Edbu...