Skip to content

Instantly share code, notes, and snippets.

@nottux
Created January 23, 2020 23:09
Show Gist options
  • Select an option

  • Save nottux/f40fcb2f537389e22682d3115f26fbf8 to your computer and use it in GitHub Desktop.

Select an option

Save nottux/f40fcb2f537389e22682d3115f26fbf8 to your computer and use it in GitHub Desktop.
My boinc script that launches with two gpu's if argument passed
#! /bin/bash
b=/dev/shm/cc_config_boing.xml
echo -e '<!--\nThis is a minimal configuration file cc_config.xml of the BOINC core client.\nFor a complete list of all available options and logging flags and their\nmeaning see: https://boinc.berkeley.edu/wiki/client_configuration\n-->\n<cc_config>\n <log_flags>\n <task>1</task>\n <file_xfer>1</file_xfer>\n <sched_ops>1</sched_ops>\n </log_flags>\n <options>'>$b
if [ "$1" = "$a" ]
then echo ' <ignore_ati_dev>0</ignore_ati_dev>'>>$b
fi
echo -e ' <use_all_gpus>1</use_all_gpus>\n </options>\n</cc_config>\n'>>$b
cd /home/utku3/BOINC
boincmgr&boinc
@nottux
Copy link
Copy Markdown
Author

nottux commented Jan 23, 2020

in the directory, cc_config.xml is symlink to /dev/shm/cc_config_boing.xml

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