https://github.com/geodynamics/citcoms
Revision e1af9949663c2733583648b499b2dd1e2e68ec8b authored by Leif Strand on 28 May 2009, 01:50:40 UTC, committed by Leif Strand on 28 May 2009, 01:50:40 UTC
-- under the device emulator.  Added a new 'configure' option:
"--with-cuda".

1 parent 500e3f5
Raw File
Tip revision: e1af9949663c2733583648b499b2dd1e2e68ec8b authored by Leif Strand on 28 May 2009, 01:50:40 UTC
CUDA-ized e_assemble_del2_u(), and ran it successfully -- and slowly!
Tip revision: e1af994
citcoms_datadir
#!/usr/bin/env python

def get_var():
    # get your username on this machine, and make it upper case
    import os
    var = os.environ.get("USER")
    return var.upper()


# invariant prefix of datadir
prefix = "/scratch/"

# invariant suffix of datadir
suffix = ""

# get the machine-dependent part of datadir
var_path = get_var()

# construct the full string for datadir
print "%s%s%s" % ( prefix, var_path, suffix )
back to top