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
ChplVdebug: ver 1.4 nodes 1 nid 0 tid 1 seq 69707713484.000 1590189707.713558 0.081259 0.004699 | |
CHPL_HOME: ... | |
DIR: $CHPL_HOME/test/chplvis | |
SAVEC: | |
Tablesize: 86 | |
fname: 0 <unknown> | |
fname: 1 <internal> | |
fname: 2 $CHPL_HOME/modules/internal/ChapelBase.chpl | |
fname: 3 $CHPL_HOME/modules/internal/ChapelStandard.chpl | |
fname: 4 $CHPL_HOME/modules/internal/PrintModuleInitOrder.chpl |
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
wget https://github.com/chapel-lang/chapel/releases/download/1.22.0/chapel-1.22.0.tar.gz | |
tar -xvf chapel-1.21.0.tar.gz | |
cd chapel-1.21.0 | |
source util/setchplenv.bash | |
make -j 64 |
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
# Source a file if it exists | |
function source_if_exists { | |
if [ -f "$1" ]; then | |
. "$1" | |
fi | |
} | |
# Returns whether the given command is executable or aliased. | |
function _has() { | |
return $(which $1 >/dev/null ) |
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
" | |
" Add this to your vimrc to get a warning before opening files that will take a while to load in vim. | |
" This includes: binary (non-ascii, non-utf) files and certain filetypes (csv, tsv) | |
" | |
augroup bigfiles | |
" Clear the bigfiles group in case defined elsewhere | |
autocmd! | |
" Set autocommand to run before reading buffer | |
autocmd BufReadCmd * silent call PromptFileEdit() |
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
use BlockDist; | |
proc main() throws { | |
var D = {1..8}; | |
var distD = D dmapped Block(boundingBox=D); | |
var A: [distD] int; | |
// Test array (from http://mpitutorial.com/tutorials/mpi-reduce-and-allreduce/) | |
A = [5, 1, 2, 3, 7, 8, 4, 2]; |
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
use LinearAlgebra; | |
type eType = real; | |
config const N = 8; | |
proc asum1(a : [?asize] ?T) : T // can overflow | |
{ | |
return + reduce abs(a); | |
} |
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
proc lcs(a: string, b: string): string { | |
var lengths: [1..a.size+1, 1..b.size+1] int; | |
for (i, x) in zip(1..a.size, a) { | |
for (j, y) in zip(1..b.size, b) { | |
if x == y { | |
lengths[i+1, j+1] = lengths[i, j] + 1; | |
} else { | |
lengths[i+1, j+1] = max(lengths[i+1, j], lengths[i, j+1]); | |
} | |
} |
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
28c28 | |
< Consult the `Netlibs LAPACK <http://www.netlib.org/lapack/>`_ site, and the `Netlibs <http://www.netlib.org/lapack/explore-html/globals_func.html>`_ and `Intel <https://software.intel.com/en-us/node/501008>`_ LAPACK documents for that information. | |
--- | |
> Consult the `Netlibs LAPACK <http://www.netlib.org/lapack/>`_ site, and the `Netlibs <http://www.netlib.org/lapack/explore-html/globals_func.html>`_ and `Intel <https://software.intel.com/en-us/node/520866>`_ LAPACK documents for that information. | |
58c58 | |
< The LAPACKE types ``lapack_int``, ``lapack_float``, ``lapack_double``, ``lapack_complex_float``, ``lapack_complex_double``, and ``lapack_logical`` are not defined at all, but rather are replaced by the types :type:`c_int`, :type:`real(32)`, :type:`real(64)`, :type:`complex(64)`, :type:`complex(128)`, and :type:`c_int` respectively. | |
--- | |
> The LAPACKE types ``lapack_int``, ``lapack_float``, ``lapack_double``, ``lapack_complex_float``, ``lapack_complex_double``, and ``lapack_logical`` are not defined |
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
# Rebind PREFIX to backtick: ` | |
unbind C-b | |
set -g prefix '`' ; bind '`' send-prefix | |
# Default shell = /usr/local/bin/bash (for OS X) | |
if-shell "uname | grep -q Darwin" "set-option -g default-shell /usr/local/bin/bash" | |
# OS X specific attempt to copy/paste with clipboard | |
set-option -g default-command "reattach-to-user-namespace -l bash" # or bash... |
NewerOlder