How to emit device-side IR when compiling CUDA?

I’m trying:

clang+±3.8 -I/usr/local/cuda-7.5/include llvm-sample.cu -emit-llvm -S -o llvm-sample.ll

This seems to emit host-side IR only?

( found it: --cuda-device-only cool :slight_smile: )