Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// compile with either: | |
// clang++ -std=c++11 -O2 cartesian-grid.cpp -o cartesian-grid | |
// g++ -std=c++11 -O2 cartesian-grid.cpp -o cartesian-grid | |
#include <chrono> | |
#include <iostream> | |
#include <vector> | |
typedef double scalar_t; | |
typedef int64_t idx_t; |
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
# Version using only CUDAdrv | |
using CUDAdrv, CUDAnative | |
using BenchmarkTools | |
const N = 1000000 | |
function kernel_init(A, B, numElements) | |
i = (blockIdx().x-1) * blockDim().x + threadIdx().x | |
if i <= numElements |
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 | |
sourcedir=$HOME/src/trilinos | |
instdir=$HOME/src/build/trilinos-install | |
CC=mpicc | |
CXX=mpic++ | |
FC=mpif77 | |
ccmake -D CMAKE_INSTALL_PREFIX:PATH=$instdir -D CMAKE_BUILD_TYPE:STRING=RELEASE \ |
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 OpenCV | |
using CxxWrap | |
struct Point{T} | |
x::T | |
y::T | |
end | |
@wrapmodule "build/lib/libtestlib.so" |
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
### A Pluto.jl notebook ### | |
# v0.14.2 | |
using Markdown | |
using InteractiveUtils | |
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
macro bind(def, element) | |
quote | |
local el = $(esc(element)) |