! Copyright (C) 2010 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
-USING: arrays combinators.smart io.backend io.directories
-io.launcher io.pathnames kernel locals math sequences splitting
-system ;
+USING: combinators.smart io.backend io.directories io.launcher
+io.pathnames kernel math sequences splitting system ;
IN: cuda.nvcc
HOOK: nvcc-path os ( -- path )
path normalize-path :> path2
path2 parent-directory [
path2 nvcc-command
- run-process wait-for-process [ path2 throw-nvcc-failed ] unless-zero
+ run-process wait-for-process [ path2 nvcc-failed ] unless-zero
path2 cu>ptx
] with-directory ;