<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@MS Mincho";}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri","serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'>I have no idea regarding that crash, but from the rest of the
log it seems that the app is initializing a d3d device; This means you'll
probably have to implement cuda&lt;-&gt;d3d communication<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=DE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
wine-devel-bounces@winehq.org [mailto:wine-devel-bounces@winehq.org] <b>On
Behalf Of </b>Seth Shelnutt<br>
<b>Sent:</b> Saturday, July 12, 2008 7:52 PM<br>
<b>To:</b> wine-devel@winehq.org<br>
<b>Subject:</b> Re: CUDA wrapper<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>OK, I've fixed a few mistakes
in the .spec file and we are getting further, but I tried debugging the output
but I am not sure what it all means.<br>
<br>
zerix01@DeepThought:~/.wine/drive_c/Program
Files/Folding@home/Folding@home-gpu$ winedbg Folding@home.exe<br>
WineDbg starting on pid 0024<br>
start_process () at /media/md0/wine/wine/dlls/kernel32/process.c:904<br>
0x7b877d02 start_process+0xc2
[/media/md0/wine/wine/dlls/kernel32/process.c:904] in kernel32: movl
%esi,0x0(%esp)<br>
904 ExitThread( entry( peb ) );<br>
Wine-dbg&gt;n<br>
fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex
samplers and 32 total samplers<br>
fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8)
&gt; combined_samplers<br>
fixme:win:EnumDisplayDevicesW ((null),0,0x33f40c,0x00000000), stub!<br>
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr
0xf7facaaf<br>
Invalid address (0x7b877d07 start_process+0xc7) for breakpoint 0, disabling it<br>
Process of pid=0024 has terminated<br>
Wine-dbg&gt;<br>
<br>
I believe the key line is Invalid address (0x7b877d07 start_process+0xc7) for
breakpoint 0, disabling it . But what exactly that means I am not sure, I mean
I don't know which function it is saying is missing or messed up. Also from the
documentation and from the nvidia forums it seems that both libraries are
exactly the same, and it is said that there is no difference in writing a
program for Linux vs. Windows, but I assume that is minus the direct3d
functions, which I know the folding at home program doesn't use.<o:p></o:p></p>

<div>

<p class=MsoNormal>On Thu, Jul 10, 2008 at 12:01 AM, Stefan D�singer &lt;<a
href="mailto:stefan@codeweavers.com">stefan@codeweavers.com</a>&gt; wrote:<o:p></o:p></p>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>Wine links against <a
href="http://cudart.dll.so" target="_blank">cudart.dll.so</a> from /usr/lib/ or
wherever it is. You don't have to put it in C:\windows\... .</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>You can put a TRACE or ERR into
the cudaMalloc(or whatever) function implementation in your code to write a
message to check if the functions are properly called. I suspect they are, and
that libcudart.so writes those errors. This would then mean that the Windows
and Linux cuda libraries are different, and some features are missing in the
Linux version. If that is true, the only thing you can do is to contact Nvidia
and ask them for help</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-left:solid windowtext 1.5pt;padding:0in 0in 0in 4.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue'>

<div>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><span lang=DE style='font-size:10.0pt'>From:</span></b><span lang=DE
style='font-size:10.0pt'> <a href="mailto:wine-devel-bounces@winehq.org"
target="_blank">wine-devel-bounces@winehq.org</a> [mailto:<a
href="mailto:wine-devel-bounces@winehq.org" target="_blank">wine-devel-bounces@winehq.org</a>]
<b>On Behalf Of </b>Seth Shelnutt<br>
<b>Sent:</b> Wednesday, July 09, 2008 7:23 PM<br>
<b>To:</b> Juan Lang; <a href="mailto:wine-devel@winehq.org" target="_blank">wine-devel@winehq.org</a><br>
<b>Subject:</b> Re: CUDA wrapper</span><o:p></o:p></p>

</div>

</div>

<p>&nbsp;<o:p></o:p></p>

<p>Well at least it compiled, but it isn't working. We are still getting the
message that the function isn't implemented.<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
<br>
Initializing Nvidia gpu library<br>
cudaMalloc CUDAStream::Allocate failed feature is not yet implemented<br>
<br>
<br>
Now both cudamalloc and all four cuda stream's, cudaStreamCreate, Destroy,
Query and Synchronize were implemented.<br>
I thought maybe it was because in the spec file I had the cudaStream's as
pointers (ptr) so I switched them to long but ti didn't make a difference.
Originally the argument was &quot;stream&quot; but I can't get any argument but
ptr and long to pass the winegcc for spec files.<br>
<br>
<a href="http://shelnutt.twomurs.com/patches/cuda/cuda.dll.spec" target="_blank">http://shelnutt.twomurs.com/patches/cuda/cuda.dll.spec</a><br>
<br>
Does wine need to somehow be made aware of the presence of the <a
href="http://cudart.dll.so" target="_blank">cudart.dll.so</a> file? We tried
putting it in both the system32 and the lib folder but it seems also that maybe
WINE needs to be made aware of it?<o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</body>

</html>