Local Work Advantages
- Fast and Stable: No server wait times or reconnections needed.
- GitHub Copilot Access: Requires local GitHub connection.
- Universal Compilation: APT.out can compile locally for distribution on various servers.
Installation
- Install CentOS 7.3 and necessary packages for APT compilation (Tutorial coming soon).
- Modify
./Makefile
for hdf5 and mpi library paths (Tutorial coming soon).
Repository Setup
git clone http://114.214.161.12:9980/you/your_project.git git checkout your_branch
Or using ssh:
git clone git@114.214.161.12:you/your_project.git git checkout your_branch
For existing local repositories, add GitLab as a remote repository:
git remote add origin http:// git remote add origin git@ git remote set-url origin git@
GitLab Interaction
git pull git add . git commit -m "message" git push
Use ssh keys to avoid password entry:
- Generate ssh keys locally:
ssh-keygen -t rsa -b 4096 -C "your_label"
- Copy the public key to GitLab:
cat ~/.ssh/id_rsa.pub
Compilation
make make install
For Clangd code analysis, compile with intercept-build
:
yum -y install clang-analyzer intercept-build make
Debug mode:
make debug make install_debug make clean_debug
Compile with CMake (New)
Edit apt/CMakeLists.txt
for hdf5 and mpi paths. Options:
USE_HDF5
: True for hdf5 data format, False for GAPS-IO.DEBUG_MODE
: True for debug, False for release.CMAKE_INSTALL_PREFIX
: Path for installed files (apt/DataAnalysis
by default).
mkdir build cd build cmake .. make && make install
Upload APT.out to FUYUN
./push_to_FUYUN.sh
Use ssh keys:
- Copy the public key locally:
cat ~/.ssh/id_rsa.pub
- @FUYUN: Paste the public key to
~/.ssh/authorized_keys
.
Connect to FUYUN
ssh username@fuyunIPaddress:~/
APT.out is in the specified directory in
../scp_APTout_to_FUYUN.sh
@FUYUN: Update APT.out
cd ~/apt/DataAnalysis/your_working_directory ./updateAPT.sh
@FUYUN: Run APT.out
python ./create_config.py bsub < mpi_run.sh