Skip to main content

Cuda Mangement - multi-process, scheduled jobs, distributed processing

Project description


Cuda Mangement - multi-process, scheduled jobs, distributed processing

task manager

task template

#!/usr/bin/env bash

while getopts g: option;do
    case "${option}" in
    g) GPU_ID=${OPTARG};;

    printf "Parameter g(GPU ID) is mandatory\n"
    printf "g values - GPU ID"
    exit 1

if [ -z "${GPU_ID}" ];then

echo "start task on GPU: $GPU_ID"

# the root directory of your python script
cd ~/code/psocnn/
# the main python script accepting the gpu ID in -g argument
python3 -g ${GPU_ID}

task folder structure

task folder structure

task manager

# start task manager
nohup -n 2 -s 2 -i 60 -f 300 &
# snap gpu -s 2 -l 60 -g 1

install cumdam for a specific user and can not add the local path into executable PATH

  • Switch to the root folder of your project

  • Install cudam package

pip install --user cudam
  • Create a soft link of the executable file
ln -s /home/{YOURUSER}/.local/bin/
ln -s /home/{YOURUSER}/.local/bin/
  • Run the task manager
# run interactively
python -n 2 -s 2 -i 60 -f 300
# run in background
nohup python -n 2 -s 2 -i 60 -f 300 &

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cudam-0.0.4-py3-none-any.whl (16.7 kB) Copy SHA256 hash SHA256 Wheel py3
cudam-0.0.4.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page