Re: [osg-users] [osgCompute] trunk compile
Hi, On 05/10/2011 14:04, Mick Keller wrote: ...I just committed the changes to the trunk. Thank you. The FindCuda-script has not been updated yet. Best regards, Mick thanks. Tt appears that the latest CMake versions (at least 2.8.5 that I have on Debian Sid) includes a FindCUDA script as well, maybe you can check that out. regards jp -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgCompute] trunk compile
Code: $ svn diff Index: src/osgCuda/Computation.cpp === --- src/osgCuda/Computation.cpp (revision 426) +++ src/osgCuda/Computation.cpp (working copy) @@ -1,4 +1,4 @@ -#include +#include #include #include #include Index: examples/osgGeometryDemo/src/Warp.cpp === --- examples/osgGeometryDemo/src/Warp.cpp (revision 426) +++ examples/osgGeometryDemo/src/Warp.cpp (working copy) @@ -12,6 +12,7 @@ * * The full license is in LICENSE file included with this distribution. */ +#include #include #include #include ...I just committed the changes to the trunk. Thank you. The FindCuda-script has not been updated yet. Best regards, Mick [/code] SVT Group -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43196#43196 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgCompute] trunk compile
Hi JP, thanks a lot for the diff. We will include it into the source soon. The problem with the FindCuda-script is that we actually just tested it with 32 Bit machines. We need to take a closer look at this. Thank you! Best regards, Mick SVT Group -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43195#43195 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgCompute] trunk compile
I also made a comment on the 'gl -> GL' and the '#include ' in my post at http://forum.openscenegraph.org/viewtopic.php?t=9112 The reply of one of the developers is: "The most recent test we did is with OSG Library 3.1.0 (developer version). It runs with no problems." > Also, I had to manually set the path to the cudart library to point to > lib64 (/usr/local/cuda/lib64/libcudart.so) on my machine instead of lib. > I think this probably needs to be fixed in FindCUDA, but I can't look at > it now. Setting the CUDA evironment variables to the correct directories before installing osgCompute should also fix the problem. It concerns the following variables: CUDADIR, CUDA_BIN_PATH, CUDA_INC_PATH, and CUDA_LIB_PATH -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=43192#43192 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] [osgCompute] trunk compile
Hi, I just compiled osgCompute trunk with the latest OSG trunk and Cuda 4.0 on a 64-bit machine with gcc/g++ 4.4. I had to make some minor changes, I think the diff below should be OK to notice them. gl->GL for case sensitive Linux and cstring or string.h is needed for memcpy. Also, I had to manually set the path to the cudart library to point to lib64 (/usr/local/cuda/lib64/libcudart.so) on my machine instead of lib. I think this probably needs to be fixed in FindCUDA, but I can't look at it now. rgds jp ---8<--- $ svn diff Index: src/osgCuda/Computation.cpp === --- src/osgCuda/Computation.cpp (revision 426) +++ src/osgCuda/Computation.cpp (working copy) @@ -1,4 +1,4 @@ -#include +#include #include #include #include Index: examples/osgGeometryDemo/src/Warp.cpp === --- examples/osgGeometryDemo/src/Warp.cpp (revision 426) +++ examples/osgGeometryDemo/src/Warp.cpp (working copy) @@ -12,6 +12,7 @@ * * The full license is in LICENSE file included with this distribution. */ +#include #include #include #include -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org