Skip to content

SGEArray implements a simple iterator in Julia to efficiently handle Sun Grid Engine task arrays

License

Notifications You must be signed in to change notification settings

davidavdav/SGEArrays.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SGEArrays.jl

Build Status

SGEArray implements a simple iterator in Julia to efficiently handle Sun Grid Engine task arrays

Synopsis

Julia main:

using SGEArrays

listfile = ARGS[1]
files = readdlm(listfile)

for file in SGEArray(files)
  ## process file $file 
end

bash call, submit an SGE array job as an array of size 80

find data/input/ -type f > filelist
qsub -t 1-80 -b y -cwd bin/julia-script filelist

The first job in the array processes files[1], files[81], etc, the second job processes files[2], files[82], etc.

If the julia script is called outside the context of an SGE array, the iterator simply iterates over all elements.

About

SGEArray implements a simple iterator in Julia to efficiently handle Sun Grid Engine task arrays

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages