Skip to content

Instantly share code, notes, and snippets.

View cmaureir's full-sized avatar
🇨🇱
¯\_(ツ)_/¯

Cristián Maureira-Fredes cmaureir

🇨🇱
¯\_(ツ)_/¯
View GitHub Profile
@cmaureir
cmaureir / arch-post-install.md
Last active June 27, 2016 14:14
Arch Linux Post-Installation

Stuff

  • pacman -S vim dialog net-tools sudo zsh

Xorg

  • pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils xf86-video-intel xf86-input-evdev xf86-input-synaptics

Add user

  • useradd -m -s /usr/bin/zsh cmaureir

xmonad

@cmaureir
cmaureir / utfsm-cluster.md
Last active August 29, 2015 14:06
UTFSM Cluster details
Hosts Batch Role Grid Role
ui01..ui02 PBS client User Interface (UI)
site PBS server Site BDII
wn01..wn24 PBS worker Worker Nodes (WN)
gp01..gp09 PBS worker GPU -
ce01..ce02 - CREAM CE
fs01..fs06 File Servers Storage Pools (Gluster)
sp01..sp03 - Storage Element (dCache SE Pools)
se - Storage Element (dCache SE Head)
@cmaureir
cmaureir / myriad.md
Last active August 29, 2015 14:06
questions

Initialization of a Binary:

  • Calculate dt_{b_{i}} according to Eq. 22

  • Calculate the \eta_b using the condition: (Page 8, right column, second paragaph)

  • ETA_B = D_TIME_MIN / (2.0 * min(dt_{b_{i}});

  • Initialization of dt = D_TIME_MIN / 2 (Question1: This for everyone? or we just use the minimum?)

Integration of a Binary:

@cmaureir
cmaureir / accr.c
Created September 4, 2014 11:39
Accretion
// ...
if(P[j].Mass > 0)
{
if(mass > 0)
{
dx = pos[0] - P[j].Pos[0];
dy = pos[1] - P[j].Pos[1];
dz = pos[2] - P[j].Pos[2];
r2 = dx * dx + dy * dy + dz * dz;
@cmaureir
cmaureir / sge_status.md
Last active October 5, 2023 17:22
Sun Grid Engine SGE state letter symbol codes meanings
@cmaureir
cmaureir / acl.md
Last active August 29, 2015 14:02
Lustre ACL
@cmaureir
cmaureir / Haralick.md
Last active August 29, 2015 14:01
Haralick on GPU

La GPU

Vamos a considerar las GPUs nuevas (Tesla K20m), por lo cual es bueno entender un par de detalles acerca del Hardware:

La RAM de la GPU (Memoria Global) es 4800 MB, a esta memoria acceden todas las hebras de las funciones que llamemos, pero el acceso es lento, pues es caro a nivel de hardware, por lo mismolas hebras tienen unas memorias chicas a las cuales pueden acceder más rápido, las cuales no están dentro de la memoria global; éstas son los Registros y la Memoria compartida.

@cmaureir
cmaureir / send_condor.sh
Created May 12, 2014 08:39
Condor script
notify_user = <email>
notification = Error
notification = Complete
notification = Always
universe = vanilla
environment = OUTDIR=.;LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:<extra_path>
executable = <route to executable>
arguments = <arguments>
output = <output_file>
@cmaureir
cmaureir / send_sge.sh
Last active August 29, 2015 14:01
Sun Grid Engine (SGE)
#!/bin/bash
$ -r n
$ -l h_rt=24:00:00, h=!(<blacklist_node1>| ...)
$ -q <queue>.q
$ -pe <queue> 60
$ -N <name>
$ -m abe
$ -cwd
$ -R y
@cmaureir
cmaureir / gpuc
Created April 23, 2014 20:21
[UTFSM-Cluster] GPU details
* 2 GPUs (Tesla C1060)
* 24 CPUs (Intel(R) Xeon(R) X5650 @ 2.67GHz)
CUDA Driver Version / Runtime Version 6.0 / 5.5
CUDA Capability Major/Minor version number: 2.0
Total amount of global memory: 2687 MBytes (2817982464 bytes)
(14) Multiprocessors, ( 32) CUDA Cores/MP: 448 CUDA Cores
GPU Clock rate: 1147 MHz (1.15 GHz)
Memory Clock rate: 1546 Mhz
Memory Bus Width: 384-bit