tr wc {
    site {{sitename}} {
        pfn "/usr/bin/wc"
        arch "{{arch}}"
        os "{{os}}"
        type "INSTALLED"
{% if tutorial_setup == "bw-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "ppn" "1"
{% endif %}
    }
}

tr split {
    site {{sitename}} {
        pfn "/usr/bin/split"
        arch "{{arch}}"
        os "{{os}}"
        type "INSTALLED"
{% if tutorial_setup == "bw-glite" %}
        profile pegasus "cores" "1"
        profile pegasus "ppn" "1"
{% endif %}
    }
}

{% if generate_tutorial == true and tutorial_setup == "usc-hpcc" %}

# pegasus mpi clustering executable
tr pegasus::mpiexec{
   site {{sitename}} {
        pfn "/home/rcf-proj/gmj/pegasus/SOFTWARE/pegasus/pegasus-mpi-cluster-wrapper"
        arch "{{arch}}"
        os "{{os}}"

        type "INSTALLED"
        profile pegasus "clusters.size" "2" 

        # the various parameters to specify the size of the MPI job
        # in which the workflow runs on the cluster
        profile globus "jobtype" "mpi"

	# This specifies the maximum runtime for the job in seconds. It
	# should be an integer value. Pegasus converts it to the
	# "hh:mm:ss" format required by PBS.
        profile pegasus "runtime" "600"

        # specfiy the ppn parameter.
        profile pegasus "ppn" "4"

        # specify the nodes parameter
        profile pegasus "nodes" "1"

        #specify the pmem parameter
        profile pegasus "memory" "1gb"


    }
}
{% endif %}
