Here are a few notes and lessons learned on my developing my first OptiX 7 program.
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
| 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 |
| 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++ ) { |
| // 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) { |