Could you try to print LD_LIBRARY_PATH before the shell script modifies 
it? So something like

#!/bin/sh
echo "$PWD" "$LD_LIBRARY_PATH" >>/tmp/ldlibpath.log
LD_LIBRARY_PATH=...

and post what you find in /tmp/ldlibpath.log?

I'm still curious to see why this works...

Best,
Bernd

Francisco Sanz García wrote, On 15.10.2009 19:25 Uhr:
> Nice sound.
>
> It's works with the shell script. (both 6.6.40 and 6.6.37)
>
> But doesn't work without the script in 6.6.40
>
> Thanks.
>
>
>
> 2009/10/15 Bernd Machenschalk <[email protected] 
> <mailto:[email protected]>>
>
>     Francisco Sanz García wrote, On 15.10.2009 18:46 Uhr:
>
>         Cuda is 2.3
>
>         Driver is 190.18
>
>         Client is 6.6.37 i686-pc-linux-gnu
>
>
>     Rings a bell.
>
>     Try Client 6.6.40.
>
>     Also some users successfully wrapped the application with a simple
>     shell skript
>
>     #!/bin/sh
>     LD_LIBRARY_PATH=../../projects/[project] ../../projects/[name of
>     executable] "$@"
>
>     I'm really curious if that works and if so, why.
>
>     Best,
>     Bernd
>
>
>
>
>         2009/10/15 Bernd Machenschalk <[email protected]
>         <mailto:[email protected]>
>         <mailto:[email protected]
>         <mailto:[email protected]>>>
>
>
>            Which version of CUDA are you using, and which driver
>         version is
>            installed on the machine?
>
>            Oh, and which Core Client version?
>
>            Best,
>            Bernd
>
>            Francisco Sanz García wrote, On 15.10.2009 18:06 Uhr:
>
>                Hello everibody.
>
>                This is my first message to the list.
>
>                I'm trying to develop a simple cuda application, the
>         product
>                of two
>                matrices, it works fine in standalone mode, but when I
>                try to run it following the instructions of
>                http://boinc.berkeley.edu/trac/wiki/AppDebug, I obtain the
>                following:
>
>                ...
>                ...
>                <stderr_out>
>                <![CDATA[
>                <message>
>                process exited with code 193 (0xc1, -63)
>                </message>
>                <stderr_txt>
>                Hi, stderr.
>                SIGSEGV: segmentation violation
>                Stack trace (15 frames):
>                hello_cuda(boinc_catch_signal+0x64)[0x805c954]
>                [0xb7fa6400]
>                /usr/lib/libcuda.so.1[0xb7b1f99b]
>                /usr/lib/libcuda.so.1[0xb7b26791]
>                /usr/lib/libcuda.so.1[0xb7af07ae]
>                /usr/lib/libcuda.so.1[0xb7a941f3]
>                /usr/lib/libcuda.so.1[0xb7aa8794]
>                /usr/lib/libcuda.so.1[0xb7a8a675]
>                /usr/lib/libcuda.so.1[0xb7a83992]
>                /usr/lib/libcuda.so.1(cuCtxCreate+0x4f)[0xb7ae65bf]
>                hello_cuda[0x80587aa]
>                hello_cuda[0x80587d5]
>                hello_cuda[0x804abbe]
>              
>          /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb788c775]
>                hello_cuda[0x804a8f1]
>
>                Exiting...
>
>                </stderr_txt>
>                ...
>                ...
>
>                I think that my client_state_save.xml is fine:
>
>                <client_state>
>                   <host_info>
>                       <p_fpops>1e9</p_fpops>
>                       <p_calculated>2e9</p_calculated>
>                       <m_nbytes>2e9</m_nbytes>
>                       <d_total>1e11</d_total>
>                       <d_free>1e11</d_free>
>                   </host_info>
>                   <project>
>                       <master_url>http://test.test</master_url>
>                       <project_name>test_project</project_name>
>                   </project>
>
>                   <app>
>                       <name>hello_cuda</name>
>                       <user_friendly_name>hello_cuda</user_friendly_name>
>                   </app>
>
>                   <file_info>
>                       <name>hello_cuda</name>
>                       <executable/>
>                       <status>1</status>
>                   </file_info>
>                   <file_info>
>                       <name>input.txt</name>
>                       <status>1</status>
>                   </file_info>
>                   <file_info>
>                       <name>libcudart.so.2.3</name>
>                       <executable/>
>                   </file_info>
>
>                   <file_info>
>                       <name>output.txt</name>
>                       <generated_locally/>
>                       <upload_when_present/>
>                       <max_nbytes>1e6</max_nbytes>
>                   </file_info>
>                   <app_version>
>                       <app_name>hello_cuda</app_name>
>                       <api_version>1.1</api_version>
>                       <file_ref>
>                           <file_name>hello_cuda</file_name>
>                           <main_program/>
>                       </file_ref>
>                       <file_ref>
>                           <file_name>libcudart.so.2.3</file_name>
>                       </file_ref>
>                       <coproc>
>                           <type>CUDA</type>
>                       </coproc>
>                   </app_version>
>                   <workunit>
>                       <name>hello_cuda_wu</name>
>                       <app_name>hello_cuda</app_name>
>                       <command_line> --device 0 </command_line>
>                       <file_ref>
>                           <file_name>input.txt</file_name>
>                           <open_name>in</open_name>
>                       </file_ref>
>                   </workunit>
>
>                   <result>
>                       <name>hello_cuda_result</name>
>                       <wu_name>hello_cuda_wu</wu_name>
>                       <state>2</state>
>                       <report_deadline>2e9</report_deadline>
>                       <file_ref>
>                           <file_name>output.txt</file_name>
>                           <open_name>out</open_name>
>                       </file_ref>
>                   </result>
>
>                   <user_network_request>3</user_network_request>
>
>                </client_state>
>
>                Thanks.
>                _______________________________________________
>                boinc_dev mailing list
>                [email protected]
>         <mailto:[email protected]>
>         <mailto:[email protected]
>         <mailto:[email protected]>>
>
>                http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
>                To unsubscribe, visit the above URL and
>                (near bottom of page) enter your email address.
>                
>
>
>
>

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to