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
# This should be added AFTER the FindCUDA macro has been run | |
IF(USE_NVTX) | |
IF(HAVE_CUDA) | |
ADD_DEFINITIONS(-DUSE_NVTX) | |
LINK_DIRECTORIES("${CUDA_TOOLKIT_ROOT_DIR}/lib64") | |
LINK_LIBRARIES("nvToolsExt") | |
ENDIF(HAVE_CUDA) | |
ENDIF(USE_NVTX) |
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
#!/bin/bash | |
#FIXME Add usage() function to improve documentation | |
# Enable exposure of the specified GPIO pin (0-8) | |
gpio_enable() | |
{ | |
if [[("$1" -lt 0) || ("$1" -gt 8)]] ; then | |
echo "Valid pins are 0-8" | |
return -1; | |
fi |
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
#!/bin/bash | |
# USAGE: Add between aprun options and executable | |
# For Example: aprun -n 16 -N 1 ./foo arg1 arg2 | |
# Becomes: aprun -n 16 -N 1 ./nvprof.sh ./foo arg1 arg2 | |
export PMI_NO_FORK=1 | |
# Give each *rank* a separate file | |
LOG=timeline_$ALPS_APP_PE.nvprof | |
# Set the process and context names |
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
#!/bin/bash | |
# USAGE: Add between aprun options and executable | |
# For Example: aprun -n 16 -N 1 ./foo arg1 arg2 | |
# Becomes: aprun -n 16 -N 1 ./nvprof.sh ./foo arg1 arg2 | |
# Give each *node* a separate file | |
LOG=profile_$(hostname).nvp | |
# Stripe each profile file by 1 to share the load on large runs | |
lfs setstripe -c 1 $LOG |
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
#!/bin/bash | |
# USAGE: Add between aprun options and executable | |
# For Example: aprun -n 16 -N 1 ./foo arg1 arg2 | |
# Becomes: aprun -n 16 -N 1 ./cpu_profile.sh ./foo arg1 arg2 | |
# Give each *rank* a separate file | |
LOG=cpu_profile_$ALPS_APP_PE.nvprof | |
# Stripe each profile file by 1 to share the load on large runs | |
if [ ! -f "$LOG" ] ; then |
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
var Hapi = require('hapi'); | |
var server = Hapi.createServer(process.env.IP,parseInt(process.env.PORT)); | |
// Define the route | |
var hello = { | |
handler: function (request) { | |
request.reply({ greeting: 'hello world' }); | |
} | |
}; |
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
/** Charlieplexing 6 LEDs with Arduino Uno **/ | |
/** Jeff Larkin [http://github.com/jefflarkin] **/ | |
/* | |
* Wiring Diagram: | |
* | |
* pin 2 ===== led0+, led1- ===== led4+, led5- | |
* pin 4 ===== led1+, led0- ===== led2+, led3- | |
* pin 6 ===== led3+, led2- ===== led5+, led4- | |
* | |
*/ |
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
#!/bin/bash | |
# USAGE: Add between aprun options and executable | |
# For Example: aprun -n 16 -N 1 ./foo arg1 arg2 | |
# Becomes: aprun -n 16 -N 1 ./profile.sh ./foo arg1 arg2 | |
# Enable command-line profiler | |
export COMPUTE_PROFILE=1 | |
# Set output to CSV (optional) | |
export COMPUTE_PROFILE_CSV=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
module dtmod | |
implicit none | |
private | |
integer, public, parameter :: N = 64 | |
type, public :: mytype | |
sequence | |
real(8) :: a(N,N) | |
real(8) :: b(N,N) | |
end type mytype | |
end module |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
- <apiresponse> | |
- <character name="Mathrid" world="Crickhollow" monster="0" race="Race of Man" race_id="23" class="Champion" class_id="172" level="30" origin="Dale" origin_id="16"> | |
- <vocation name="Woodsman" vocation_id="1879062814"> | |
- <professions> | |
<profession name="Woodworker" profession_id="1879055941" proficiency="2" mastery="1" icon_profession="http://lorebook.lotro.com/icon.php?type=profession&id=1879055941" /> | |
<profession name="Farmer" profession_id="1879062816" proficiency="0" mastery="0" icon_profession="http://lorebook.lotro.com/icon.php?type=profession&id=1879062816" /> | |
<profession name="Forester" profession_id="1879062817" proficiency="2" mastery="2" icon_profession="http://lorebook.lotro.com/icon.php?type=profession&id=1879062817" /> | |
</professions> | |
</vocation> |