Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cuda_renderer/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cuda_renderer
cuda_renderer*
7 changes: 7 additions & 0 deletions cuda_renderer/Makefile.mak
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cuda_renderer: main.cu mpi_cuda.cu
nvcc -ccbin cl -std=c++11 -m64 -I. \
main.cu mpi_cuda.cu -o cuda_renderer

clean:
del cuda_renderer.*

6 changes: 5 additions & 1 deletion cuda_renderer/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ void gpu2ffmpeg(const char* filename, uint8_t* d_out_arr_vid,
cout << "ffmpeg, calling:" << endl;
cout << sstm.str() << endl;
// open a pipe to FFmpeg
if ( !(pPipe = popen(sstm.str().c_str(), "w")) ) {
#ifdef _WIN32
if ( !(pPipe = _popen(sstm.str().c_str(), "w")) ) {
#else
if ( !(pPipe = popen(sstm.str().c_str(), "w")) ) {
#endif
cout << "popen error" << endl;
exit(1);
}
Expand Down