New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If there any possibility to support IBM LSF system? #71
Comments
After some try-and-trial, finally, I find out the solution. The key point is creating
#!/bin/sh
#BSUB -J TEST_SCOOP
#BSUB -q rhel6normal
source ~/.bash_profile
# Path to executable
cd /wps/home/zhulj/demo/scoop_test
# Add local python installation paht
export PATH=/home/zhulj/soft/python-2.7.13/bin:$PATH
# start a new host file from scratch
SCOOPHOST_FILE=hosts_$LSB_JOBID
rm -f $SCOOPHOST_FILE
touch $SCOOPHOST_FILE
echo "# SCOOP hostfile created by LSF on `date`"
# check if we were able to start writing the conf file
if [ -f $SCOOPHOST_FILE ]; then
:
else
echo "$0: can't create $SCOOPHOST_FILE"
exit 1
fi
HOST=""
NUM_PROC=""
FLAG=""
TOTAL_CPUS=0
for TOKEN in $LSB_MCPU_HOSTS
do
if [ -z "$FLAG" ]; then # -z means string is empty
HOST="$TOKEN"
FLAG="0"
else
NUM_PROC="$TOKEN"
FLAG="1"
fi
if [ "$FLAG" = "1" ]; then
_x=0
if [ $_x -lt $NUM_PROC ]; then
TOTAL_CPUS=`expr "$TOTAL_CPUS" + "$NUM_PROC"`
echo "$HOST $NUM_PROC" >> $SCOOPHOST_FILE
fi
# get ready for the next host
FLAG=""
HOST=""
NUM_PROC=""
fi
done
echo "Your SCOOP boot hostfile looks like:"
echo "TOTAL_CPUS: ${TOTAL_CPUS}"
# Python script
script=onemax_island_scoop.py
# SCOOP command
python -m scoop --debug --hostfile $SCOOPHOST_FILE $script > testscoop_$LSB_JOBID.stdout.log
The
|
It would still be great to support LSF! Can this issue be reopened? |
Currently, the above solution I posted can work. It would be great if SCOOP can support LSF natively. |
Hi,
I have developed my algorithm using DEAP with SCOOP and tested on our little cluster using PBS system. Now, I want to run on our big cluster which installed IBM LSF. Since I cannot specify the accessible hosts, I found SCOOP cannot detect the LSF system.
Then, I found the following instruction.
So, I wonder if there any possibility to support IBM LSF system?
Thank you very much!
The text was updated successfully, but these errors were encountered: