This file contains hidden or 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
#!/usr/bin/env python3 | |
# if -i, apply formatting, don't just report diff | |
# if -r <refspec>, only format diff relative to revision <refspec> | |
# | |
# This looks in the repo root for `.clang-format-ignore` containing path patterns to ignore, e.g., | |
# | |
# /some/subdir/.* | |
# | |
# |
This file contains hidden or 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 to ~/.bashrc | |
# call load_msenv [year] from a shell to load the enviroment | |
function load_msenv() { | |
local msversion_year=2019 | |
if [ $# -gt 0 ]; then | |
msversion_year=$1 | |
fi | |
case $msversion_year in | |
2017) |
This file contains hidden or 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
#define ELEM_DEGREE 4 | |
enum Direction { X, Y, Z}; | |
enum Transpose { TR, NOTR}; | |
template <Direction dir, unsigned int n, | |
bool add, bool inplace,typename Number> | |
__device__ void reduce(Number * __restrict__ dst, const Number * __restrict__ src, const Number *myphi) | |
{ |