OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

cudaMemcpy2D inconsistency


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute]
View previous topic :: View next topic  
Author Message
J.P. Delport
Guest





PostPosted: Fri Oct 07, 2011 10:07 am    Post subject:
cudaMemcpy2D inconsistency
Reply with quote

Hi,

I've found an inconsistency between the cases where my input texture to
an osgCompute module is a texture with an osg::Image present and where
my texture is an FBO target. I'm using MAP_DEVICE.

In both cases the osgCuda code uses MallocPitch to create the buffer
where the texture data goes (alloc()), but in the Image case it uses
memcpy (not 2D, in setup()) to transfer the data. So, the buffer in the
image case does not honour the memory pitch, while in the FBO case it does.

I ?fixed? it using the modified file (src/osgCuda/Texture.cpp) as
attached and now I get consistent behaviour. Let me know what you think.

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.




------------------
Post generated by Mail2Forum
Back to top
jens.svt
User


Joined: 16 Mar 2009
Posts: 30

PostPosted: Fri Oct 07, 2011 11:02 am    Post subject:
Reply with quote

Thank you very much J.P..
We simply have overseen it.

We have changed the implementation of osgCuda::TextureMemory::setup() in the current SVN version according to your correct implementation.

Great work!

Best regards,
Jens
Back to top
View user's profile Send private message
J.P. Delport
Guest





PostPosted: Fri Oct 07, 2011 12:13 pm    Post subject:
cudaMemcpy2D inconsistency
Reply with quote

Hi Jens,

On 07/10/2011 13:02, Jens Orthmann wrote:
Quote:
Thank you very much J.P.. We simply have overseen it.

We have changed the implementation of osgCuda::TextureMemory::setup()
in the current SVN version according to your correct implementation.

thanks
jp

Quote:

Great work!

Best regards, Jens

------------------ Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=43249#43249





_______________________________________________ osg-users mailing
list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
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.



------------------
Post generated by Mail2Forum
Back to top
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> osgCompute [osgCompute] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts osg::LineSegment intersect with Box a... Wojtek General 7 Sat Apr 25, 2015 12:12 pm View latest post
No new posts Exceptions inconsistency Victor Severtsev General 0 Sun Jun 08, 2014 7:06 pm View latest post
No new posts Inconsistency detected by ld.so: dl-c... Chris Stankevitz General 0 Wed Aug 07, 2013 6:51 pm View latest post
No new posts referenced file path search order inc... Terry Welsh General 2 Wed Jul 24, 2013 4:50 am View latest post
No new posts Viewer/CompositeViewer inconsistency? Thomas_Lerman General 10 Mon Oct 31, 2011 3:10 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP