pp12821@marfim:~/python$ ladalloc -c atlantica -n 1 -t 60 -e
/usr/local/torque-2.5.11/bin/qsub -I -V -d /home/pp12821/python -l nodes=1:cluster-Atlantica:ppn=16,walltime=00:60:00
qsub: waiting for job 57392.marfim.lad.pucrs.br to start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microfinance import db | |
from passlib.hash import bcrypt | |
from marshmallow import Schema | |
from marshmallow import post_dump | |
class User(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
username = db.Column(db.String(32), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from microfinance import app, db | |
from microfinance.models import User | |
from sqlalchemy.exc import IntegrityError | |
class UserTestCase(unittest.TestCase): | |
def setUp(self): | |
app.config['TESTING'] = True | |
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgres://localhost/microfinance_test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: hellogl | |
hellogl: main.c | |
clang -o hellogl main.c -lglfw -lGL -lGLEW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bubblesort(list): | |
length = len(list) - 1 | |
sorted = False | |
while not sorted: | |
sorted = True | |
for i in range(length): | |
if list[i] > list[i+1]: | |
sorted = False | |
list[i], list[i+1] = list[i+1], list[i] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import numpy | |
from mpi4py import MPI | |
from bubblesort import bubblesort | |
comm = MPI.COMM_WORLD | |
rank = comm.Get_rank() | |
size = comm.Get_size() | |
status = MPI.Status() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pp12821@marfim:~/python$ ladalloc -c atlantica -n 2 -t 60 -e | |
/usr/local/torque-2.5.11/bin/qsub -I -V -d /home/pp12821/python -l nodes=2:cluster-Atlantica:ppn=16,walltime=00:60:00 | |
qsub: waiting for job 57322.marfim.lad.pucrs.br to start | |
qsub: job 57322.marfim.lad.pucrs.br ready | |
-------------------------------------- | |
Running PBS prologue script | |
Checking all prerequisites... | |
Done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pp12821@atlantica02:~/python$ python | |
Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) | |
[GCC 4.4.3] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from mpi4py import MPI | |
[atlantica02:07592] mca: base: component_find: unable to open /usr/local/openmpi/openmpi-1.4.5/lib/openmpi/mca_btl_ofud: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored) | |
[atlantica02:07592] mca: base: component_find: unable to open /usr/local/openmpi/openmpi-1.4.5/lib/openmpi/mca_btl_openib: perhaps a missing symbol, or compiled for a different version of Open MPI? (ignored) | |
>>> MPI.INT64_T | |
<mpi4py.MPI.Datatype object at 0x7f01fed43430> | |
>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ENV python | |
import numpy | |
from mpi4py import MPI | |
NUMARRAYS = 100 | |
ARRAYSIZE = 10000 | |
ASK_FOR_WORK_TAG = 1 | |
WORK_TAG = 2 | |
WORK_DONE_TAG = 3 |
I hereby claim:
- I am pedrovanzella on github.
- I am pedrovanzella (https://keybase.io/pedrovanzella) on keybase.
- I have a public key whose fingerprint is 5EB3 4AC2 123F 7831 4108 6A37 BF98 6EAA 2E29 0719
To claim this, I am signing this object: