Beispiel #1
0
def new_cartesius_resource():
    resource = Resource()
    resource.name = "cartesius"
    resource.location = "int2-bb.cartesius.surfsara.nl"
    resource.amuse_dir = "/home/vriesn/amuse-svn"
    resource.scheduler_type = "slurm"
    return resource
Beispiel #2
0
def new_lgm_node(node_name):
    resource = Resource()
    resource.name = "LGM" + node_name
    resource.location = node_name
    resource.gateway = "LGM"
    resource.amuse_dir = "/home/vriesn/amuse-svn"
    return resource
Beispiel #3
0
def new_lgm_node(node_name):
    resource = Resource()
    resource.name = "LGM" + node_name
    resource.location = node_name
    resource.gateway = "LGM"
    resource.amuse_dir = "/scratch/jilkova/amuse/amuse-svn"
    return resource
Beispiel #4
0
def new_lgm_node(node_name):
    resource = Resource()
    resource.name = "LGM" + node_name
    resource.location = node_name
    resource.gateway = "LGM"
    resource.amuse_dir = "amuse"
    return resource
Beispiel #5
0
def new_lgm_node(node_name, kepler=False):
    resource = Resource()
    resource.name = "LGM" + node_name
    resource.location = node_name
    resource.gateway = "LGM"
    if kepler:
        resource.amuse_dir = "/home/vriesn/kepler/amuse-svn"
    else:
        resource.amuse_dir = "/home/vriesn/amuse-svn"
    return resource
Beispiel #6
0
def init_das5_only(username, num_nodes, num_cores):

    print("Setting up distributed code")
    instance = DistributedAmuse()
    instance.parameters.debug = False
    instance.parameters.worker_queue_timeout=1 | units.hour

    instance.parameters.webinterface_port = 4556
    print("url:", instance.get_webinterface_url())
    instance.commit_parameters()

    #print "Resources:"
    resource = Resource()
    resource.name = "DAS-5"
    resource.location = username + "@fs0.das5.cs.vu.nl"
    resource.scheduler_type = "slurm"
    resource.amuse_dir = "/home/" + username + "/amuse/amuse"
    resource.tmp_dir = "/home/" + username + "/tmp"
    instance.resources.add_resource(resource)
    #print instance.resources

    pilot = Pilot()
    pilot.resource_name="DAS-5"
    pilot.queue_name="defq"
    pilot.node_count=num_nodes
    pilot.time= 24|units.hour
    pilot.slots_per_node=num_cores
    pilot.label="DAS-5-Pilot"

    instance.pilots.add_pilot(pilot)

    #~ print "Reservations:"
    #~ print instance.pilots
    print("Waiting for reservations")
    instance.wait_for_pilots()

    return instance
Beispiel #7
0
def new_lgm_gateway():
    resource = Resource()
    resource.name = "LGM"
    resource.location = "fs.lgm.liacs.nl"
    resource.amuse_dir = "/home/vriesn/amuse-svn"
    return resource
Beispiel #8
0
"""



from amuse.community.distributed.interface import DistributedAmuseInterface, DistributedAmuse
from amuse.community.distributed.interface import Resource, Resources, Pilot, Pilots
from amuse.units import units

#initialize code, print output of code to console
instance = DistributedAmuse(redirection='none')
instance.commit_parameters()

print instance.parameters.webinterface_port

resource = Resource()
resource.name = "Cartesius"
resource.location = "*****@*****.**"
resource.scheduler_type = "slurm"
resource.amuse_dir = "/home/ben/amuse/amuse-svn"
resource.tmp_dir = "/home/ben"

instance.resources.add_resource(resource)

pilot = Pilot()
pilot.resource_name="Cartesius"
pilot.queue_name="short" 
pilot.node_count=1
pilot.time= 1|units.hour
pilot.slots_per_node=24
pilot.label="CartesiusNode" 
Beispiel #9
0
def new_lgm_gateway():
    resource = Resource()
    resource.name = "LGM"
    resource.location = "fs.lgm.liacs.nl"
    resource.amuse_dir = "/scratch/jilkova/amuse/amuse-svn"
    return resource
Beispiel #10
0
def new_hofvijver_resource():
    resource = Resource()
    resource.name = "hofvijver"
    resource.location = "hofvijver.strw.leidenuniv.nl"
    resource.amuse_dir = "/data1/vriesn/amuse-svn"
    return resource
from amuse.community.distributed.interface import DistributedAmuseInterface, DistributedAmuse
from amuse.community.distributed.interface import Resource, Resources, Pilot, Pilots
from amuse.units import units

import numpy
from matplotlib import pyplot

instance = DistributedAmuse(redirection="none")
instance.parameters.debug = False
instance.parameters.worker_queue_timeout=1 | units.hour
instance.commit_parameters()

print instance.parameters.webinterface_port

resource = Resource()
resource.name = "DAS-5"
resource.location = "*****@*****.**"
resource.scheduler_type = "slurm"
resource.amuse_dir = "/home/bwn200/amuse/amuse-svn"
resource.tmp_dir = "/home/bwn200/tmp"

instance.resources.add_resource(resource)

pilot = Pilot()
pilot.resource_name="DAS-5"
pilot.queue_name="defq" 
pilot.node_count=56
pilot.time= 24|units.hour
pilot.slots_per_node=16
pilot.label="DAS-5-Pilot"
Beispiel #12
0
def new_lgm_gateway():
    resource = Resource()
    resource.name = "LGM"
    resource.location = "fs.lgm.liacs.nl"
    resource.amuse_dir = "amuse"
    return resource