Wine
From UF HPC Wiki
Setting Up Wine on HPC Systems
If you need to use wine on the HPC systems, you will need to setup an environment for it. In order to do this, you will need to login to the system and run the following command:
[user@submit ~]$ winesetup
Once this command has been run, you should not have any trouble running wine on the system. Please note that wine typically wants to run in a windowed mode, which is why we have some workarounds in the job scripts section.
Job Scripts
The following is a sample job that creates a dummy video output for display stuff to go to if it needs to. Some windows programs require this, even though nothing may actually get output.
#! /bin/sh
#PBS -N testjob
#PBS -o testjob.out
#PBS -e testjob.err
#PBS -M <EMAIL ADDRESS>
#PBS -l nodes=1:ppn=1
#PBS -l walltime=0:10:00
date
hostname
echo "Changing directory to work area"
cd /scratch/ufhpc/carpena/HOORCmodel_HPC
pwd
##
## Create dummy display
##
echo "Picking a unique display"
ncpus=`grep vendor_id /proc/cpuinfo | wc -l`
display=1
while [ $display -le $ncpus ] ; do
if [ ! -e /tmp/.X${display}-lock ] ; then
break
fi
display=`expr $display + 1`
done
echo "Unique display found: $display"
echo "Firing up dummy X server"
Xvfb :${display} > /dev/null 2>&1 &
jobs
export DISPLAY=:${display}
##
## Actual program commands
##
echo "Invoking wine"
wine delta.exe
echo "Done"
date
##
## Clean up after ourselves
##
echo "Killing dummy X server"
kill -TERM %1
# This should already be cleaned up, but just in case
rm -f /tmp/.X${display}-lock
rm -f /tmp/.X11-unix/X${display}
