Skip to content

Instantly share code, notes, and snippets.

@xaratustrah
Last active September 27, 2024 16:28
Show Gist options
  • Save xaratustrah/59a8128f3ae43a403eda3df04f336b0c to your computer and use it in GitHub Desktop.
Save xaratustrah/59a8128f3ae43a403eda3df04f336b0c to your computer and use it in GitHub Desktop.
cst_debian_installation.md

CST on Ubuntu

Installing 3DS CST Microwave Studio Suite Distributed Computing Node on Ubunntu

Tested on: Ubuntu 20.04.2 LTS nvidia version 470

nvidia + cuda installation

check if you see your GPUs:

lspci | grep -i nvidia

first try to remove old versions

sudo apt-get purge *nvidia*
sudo apt autoremove

you can reboot here once, because if there is an old version in the memory and if you run nvidia-smi you will get:

Failed to initialize NVML: Driver/library version mismatch

if you have it run

nvidia-detector 

to see which shows the latest version. This will be installed then. i.e.:

sudo apt install nvidia-driver-XXX

if all goes well, you can run:

nvidia-smi

you should see all the GPUs there. Now comes the coda toolkit

sudo apt install nvidia-cuda-toolkit

CST

You can just download the ZIP version for the Linux64 from 3DS website according to your license. Go step by step, and answer questions. It will ask you which component to install. You need the DC Controller and Solver Server, but installing the GUI is of no harm. Many of the reported missing libraries are get actually installed by the GUI. The components can be installed by comma separated values, like 1,2,4. It is recommended to use an alternative user who has the permissions to run and stop the computing node. After successful installation you have:

 *** Installation successful ***

The installation completed successfully without any warnings or errors.

then run the check script:

/opt/cst/CST_Studio_Suite_2021/cst_system_check

if you see a missing library it could be intalled. In my case it was the dummy frame buffer:

sudo apt-get install -y xvfb

Other useful tricks

Updating CST

You can easily update the installation using service packs:

sudo /opt/cst/CST_Studio_Suite_2021/update_with_supfile CST_S2_v2021_LIN_SP5_2020-09-08_2021-06-28.sup 

Start/Stop

After you are finished, you should unmount /mnt, but actually a reboot is much better. The CST DC node starts automatically. You can use the to stop/start/restart the DC-services, e.g.:

/etc/init.d/lsb-cst-maincontroller start

Check installation

Check number of available GPU cards:

nvidia-smi -L

you can check if CST sees your GPUs:

/opt/cst/CST_STUDIO_SUITE_XXXX/LinuxAMD64/CSTHardwareInfo_AMD64

you can perform a system check:

/opt/cst/CST_STUDIO_SUITE_XXXX/cst_system_check

Disable ECC

Disable error correction code for optimal performance:

sudo nvidia-smi -i <CARD Number> -e 0

Checking progress

you can see the current calculation jobs:

/opt/cst/CST_STUDIO_SUITE_2018/LinuxAMD64/CSTDCMainControl_AMD64

you can use htop to see the CPU usage. and also for GPU usage:

watch -n 0.5 nvidia-smi
nvidia-smi -q -g 0 -d UTILIZATION -l

Problems with IPv6

CST GUI and related services such as update seem to have problems running whenever IPv6 is deactivated. Reason is unknown at the moment.

Uninstall

For uninstalling CST, you have to run the specified uninstaller in:

/opt/cst/CST_STUDIO_SUITE_2018/Uninstall\ CST_STUDIO_SUITE_2018/Uninstall\ CST_STUDIO_SUITE_2018

The uninstaller may not work if you have done ssh -X. So you may repeat without X. If this does not work, then just remove the folder manually. But then you also need to remove this file:

/var/.com.zerog.registry.xml
@N0SA
Copy link

N0SA commented Apr 21, 2022

Thx, I will try it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment