Skip to content

Instantly share code, notes, and snippets.

Notes on OptiX 7

Here are a few notes and lessons learned on my developing my first OptiX 7 program.

What is OptiX?

OptiX is a ray tracing API that executes on Nvidia GPUs (Maxwell and newer). OptiX applications are written in C/C++ and CUDA. CUDA is translated into PTX code

@markjarzynski
markjarzynski / Makefile
Created April 12, 2019 15:57
Generic Makefile
CC := gcc
LDFLAGS :=
CFLAGS := -O2 -Wall
SRCS := $(wildcard *.c)
BINS := $(patsubst %.c,%,$(SRCS))
OBJS := $(patsubst %,%.o,$(BINS))
all: $(BINS)
#!/bin/sh
#
# Turn all uppercase letters to lowercase letters and all blank spaces into underscores.
for i in "$@"
do
mv "$i" `echo "$i" | tr [:upper:] [:lower:] | tr [:blank:] _`
done
#!/bin/sh
# Do not write .DS_Store to Network Shares
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
# Must kill Finder.app to take effect
#killall Finder
@markjarzynski
markjarzynski / example.js
Created April 29, 2016 19:07
window.onload
window.onload = function () {
foo();
bar();
}
var AUTORELOAD = {};
AUTORELOAD.modified_dates = [];
AUTORELOAD.needs_reload = false;
AUTORELOAD.setModifiedDates = function ( watch_list ) {
for ( var i = 0; i < watch_list.length; i++ ) {
@markjarzynski
markjarzynski / gist:8dbe7f4d2fe62cec94e9
Last active August 29, 2015 14:18
Kuku Kube cheat
// http://www.kuku-kube.com
// http://106.186.25.143/kuku-kube/en-3/
function cheat () {
var x = document.querySelectorAll("#box span");
x[0].click();
for( var i = 1; i < x.length; i++ ) {
if ( x[i].style.backgroundColor != x[0].style.backgroundColor) {