Skip to content

Instantly share code, notes, and snippets.

@q3w3e3
q3w3e3 / ranshirand.f90
Created May 4, 2022 01:00
doi:10.1016/0010-4655(95)00005-z
program ranshirand
common /ranbuf/ mbuff(130)
real*4 a(1024) ! size of array to fill with random numbers
call ranvin(1337,100) ! seed and number of generations to warm up mbuff for
call ranshi(size(a),a)
print *, a
contains
Actinium, Thorium, Protactinium, Uranium, Neptunium, Plutonium, Americium, Curium, Berkelium, Californium, Einsteinium, Fermium, Mendelevium, Nobelium, Lawrencium
Tuning a cluster to get the highest possible scores is an art all of its own - with compiler optimisations, customised math libraries, etc. However these scores are from the standard hpcc binary package in Ubuntu 16.04.4, using the default configuration.
# Setup on each node
apt install hpcc
swapoff -a
adduser mpiuser
# Controller node setup
su - mpiuser
cp /usr/share/doc/hpcc/examples/_hpccinf.txt hpccinf.txt
# Edit default hpccinf.txt so that NB=80, N=18560, P=8 and Q=12 (P x Q = 96 cores)
/*
* ------------------------------------------------------------
* "THE MONSTERWARE LICENSE" (Revision 01):
* <author> wrote this code. As long as you retain this
* notice, you can do whatever you want with this stuff. If we
* meet someday, and you think this stuff is worth it, you can
* buy me a Monster Energy® energy drink in return.
* ------------------------------------------------------------
*/
asm,dyalog,apl,pgp,asn,asn1,b,bf,c,h,cpp,c++,cc,cxx,hpp,h++,hh,hxx,cob,cpy,cs,clj,cljc,cljx,cljs,gss,cmake,cmake.in,coffee,cl,lisp,el,cyp,cypher,pyx,pxd,pxi,cr,css,cql,d,dart,diff,patch,dtd,dylan,dyl,intr,ecl,edn,e,elm,ejs,erb,erl,factor,forth,fth,4th,f,for,f77,f90,fs,s,feature,go,groovy,gradle,haml,hs,lhs,hx,hxml,aspx,html,htm,pro,jade,pug,java,jsp,js,json,map,jsonld,jsx,jl,kt,less,ls,lua,markdown,md,mkd,m,nb,mo,mps,mbox,nsh,nsi,nt,m,mm,ml,mli,mll,mly,m,oz,p,pas,jsonld,pl,pm,php,php3,php4,php5,phtml,pig,txt,text,conf,def,list,log,pls,ps1,psd1,psm1,properties,ini,in,proto,BUILD,bzl,py,pyw,pp,q,r,R,rst,spec,rb,rs,sas,sass,scala,scm,ss,scss,sh,ksh,bash,siv,sieve,slim,st,tpl,soy,rq,sparql,sql,nut,styl,swift,ltx,v,tcl,textile,toml,1,2,3,4,5,6,7,8,9,ttcn,ttcn3,ttcnpp,cfg,ttl,ts,tsx,webidl,vb,vbsvtl,vhd,vhdl,vue,xml,xsl,xsd,svg,xy,xquery,ys,yaml,yml,mscgen,mscin,msc,xu,msgenny