ptx fix for llvm < 3.5