Skip to content

Instantly share code, notes, and snippets.

View pedrovanzella's full-sized avatar

Pedro Vanzella pedrovanzella

View GitHub Profile

Keybase proof

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:

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>
>>>
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.
@pedrovanzella
pedrovanzella / results.md
Last active August 29, 2015 14:06
Resultados

1 nó

1000 x 10000

Sem HT

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
#!/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()
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]
@pedrovanzella
pedrovanzella / Makefile
Created March 24, 2015 12:50
Hello OpenGL
all: hellogl
hellogl: main.c
clang -o hellogl main.c -lglfw -lGL -lGLEW
#!/usr/bin/ruby
#This is for SABnzbd+ only
#Let's hope it works and I don't look like a complete moron.
#Uses gem mediainfo from http://github.com/greatseth/mediainfo
#Now using metaflac from the flac package to parse metadata and keep tags.
#Next step: remove mediainfo dependecy.
@pedrovanzella
pedrovanzella / genpass.rb
Created January 29, 2011 16:19
Generates all possible combinations of a set, including doubles, to fill given spaces on a string
##############################################
# genpass.rb #
# Generates a table of possible #
# passwords according to a fixed pattern #
# #
# Ugly, but works #
##############################################
def generate_combinations(array, r)
n = array.length
@pedrovanzella
pedrovanzella / crawler.rb
Created March 24, 2011 22:19
Looks for the existence of dirs on a numbered list. Done in order to learn net/http and threads.
#!/usr/bin/env ruby
#
###################################################
# crawler.rb #
# Pedro Vanzella - pedro@pedrovanzella.com #
# #
# Looks for the existence of directories on a #
# numbered, but sparse, list #
###################################################