-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to compile and run the code #7
Comments
aws ec2 g4dn.xlarge instance (Euro 0.526 / hour that it is running + Euro 1.20 / month for 12 GB gp2 SSD storage space) storage 12 GB, not default 8 GB $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
$ lspci | grep -i nvidia
00:1e.0 3D controller: NVIDIA Corporation TU104GL [Tesla T4] (rev a1)
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential
$ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
# the cmake version from the repositories is not enough, so download newer version >= 3.17
$ mkdir tmp
$ cd tmp
$ wget https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2.tar.gz
$ tar -xvzf cmake-3.22.2.tar.gz
$ cd cmake-3.22.2
# cmake needs libssl headers
$ sudo apt install libssl-dev
$ ./bootstrap
$ make
$ sudo make install
$ cmake --version
cmake version 3.22.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ sudo apt-get install linux-headers-$(uname -r)
$ sudo apt remove ^nvidia --purge
$ sudo apt remove ^libnvidia --purge
$ sudo apt autoremove
$ sudo apt autoclean
$ sudo reboot
$ sudo apt install nvidia-driver-510
$ sudo reboot
$ lsmod | grep -i nvidia
nvidia_uvm 1044480 0
nvidia_drm 61440 2
nvidia_modeset 1159168 2 nvidia_drm
nvidia 39059456 85 nvidia_uvm,nvidia_modeset
drm_kms_helper 237568 1 nvidia_drm
drm 548864 6 drm_kms_helper,nvidia,nvidia_drm
$ nvidia-smi
Wed Feb 16 12:07:08 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 Off | 00000000:00:1E.0 Off | 0 |
| N/A 32C P0 26W / 70W | 0MiB / 15360MiB | 10% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
$ sudo apt install nvidia-cuda-toolkit
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243
$ mkdir -p github/recruit
$ cd github/recruit
$ git clone https://github.com/nlesc-recruit/CUDA-wrappers (approximate version 0.1.0)
$ cd CUDA-wrappers
$ mkdir build
$ cd build
$ cmake -S .. -B .
$ make
|
I tried some others things before, but I think the following should work regardless of what I did.
Additional information
|
DAS has cmake 3.15, which can be loaded with
But then we need to change
Then we can enter, in addition to the other commands I showed before, the following commands:
|
What is the action for closing this issue? Adding the steps to compile in the README.dev? |
We will use the information in this issue while working on #33. Closing the issue. |
For the record, here are the steps for downloading the sources of cmake 3.17, building it, then installing in a user space directory (on linux): # make temp dir
cd $(mktemp -d --tmpdir download-XXXXXX)
# download sources
wget https://cmake.org/files/v3.17/cmake-3.17.5.tar.gz
# extract gzipped file
tar -xzvf cmake-3.17.5.tar.gz
# cd into the extracted directory
cd cmake-3.17.5
# configure with the install directory (choose whichever you like)
./configure --prefix ~/opt/cmake
# build
make
# install at the prefix location
make install |
Let's describe the steps to compile the code and run it on various infrastructures (DAS5, DAS6, AWS, your local system). We can then use this information to create a developer documentation.
The text was updated successfully, but these errors were encountered: