Skip to content

Instantly share code, notes, and snippets.

@prehensilecode
Last active October 23, 2019 15:01
Show Gist options
  • Save prehensilecode/f1130de2c1a38ff499402756e7bf6798 to your computer and use it in GitHub Desktop.
Save prehensilecode/f1130de2c1a38ff499402756e7bf6798 to your computer and use it in GitHub Desktop.
Convert Grid Engine PE_HOSTFILE to Open MPI hostfile
#!/bin/bash
awk '{print $1, "slots=" $2, "maxslots=" $2}' ${PE_HOSTFILE} > myhostfile.${JOB_ID}
@treetoc
Copy link

treetoc commented Oct 23, 2019

According to the doc it should be "max_slots" and not "maxslots"

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