This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# EPEL has a fairly recent Singularity, no need to build from source | |
# Geerling's box uses LVM, so its root filesystem can be expanded | |
config.vm.box = "geerlingguy/centos7" | |
config.vm.hostname = "docker-singularity" | |
# VM specs (200 GB required for Vitis-AI build, others may need more or less) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Dec 9 15:47:44 2018 | |
@author: renfro | |
""" | |
from PIL import Image, ImageDraw, ImageFont |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
For use, this script should be copied into a file name "job_submit.lua" | |
in the same directory as the SLURM configuration file, slurm.conf. | |
--]] | |
function fix_undefined_partition(job_desc) | |
if (job_desc.partition == nil) then | |
local default_partition = "batch" | |
job_desc.partition = default_partition | |
slurm.log_info( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is built on kops bootstrap | |
# https://github.com/dcwangmit01/kops/blob/ef958a7f870eb3dc20981617859b8ad69057bb2a/hooks/nvidia-bootstrap/image/run.sh | |
mkdir nvidia | |
cd nvidia | |
DRIVER_VERSION="440.82" | |
ARCH="Linux-x86_64" | |
DRIVER_FILE="NVIDIA-${ARCH}-${DRIVER_VERSION}.run" | |
DRIVER_URL="http://us.download.nvidia.com/XFree86/${ARCH}/${DRIVER_VERSION}/${DRIVER_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "${USER}" == "root" ]; then | |
USERNAME=$1 | |
else | |
USERNAME=$USER | |
fi | |
REQUESTED=525600000 | |
JOBID="" | |
# Identify smallest blocked job, it should be the next one to start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
For use, this script should be copied into a file name "job_submit.lua" | |
in the same directory as the SLURM configuration file, slurm.conf. | |
--]] | |
function slurm_job_submit(job_desc, part_list, submit_uid) | |
test_enabled = (submit_uid == __ENTER_UID_HERE__) -- user is 'renfro' | |
-- test_enabled = false | |
if (test_enabled) then |