java - Process builder with CUDA program -
i trying execute hello world cuda program without device code. through processbuilder in java. have executable of hello.cu hello.output
my code ..
string filetoexecute="path/of/hello.output"; processbuilder processbuilder = new processbuilder(filetoexecute); process proc = processbuilder.start(); try { proc.waitfor(); } catch (interruptedexception e) { // todo auto-generated catch block e.printstacktrace(); } system.err.println("exit " + proc.exitvalue()); java.io.inputstream stdin = proc.getinputstream(); inputstreamreader isr = new inputstreamreader(stdin); bufferedreader br = new bufferedreader(isr); string line = null; while ( (line = br.readline()) != null) { system.out.println(line); }
it neither showing error nor giving output. found exit value of processbuilder.start() 127. processbuilder returns return value "command not found". sure path of executable right.when executing hello.output on terminal working fine.i totally blank now. need help...
Comments
Post a Comment