Skip to content

Commit

Permalink
Document STAR-CCM+ application recipe
Browse files Browse the repository at this point in the history
Refer to #214
  • Loading branch information
dcommander committed Sep 6, 2024
1 parent 024ee66 commit cdda358
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions doc/apprecipes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@
to ''LD_LIBRARY_PATH'', which is most easily accomplished with \
''vglrun -ld'', or to disable VirtualGL's ''dlopen()'' interposer. \
|
| Siemens Simcenter STAR-CCM+ | v19.xx | Linux \
| {pcode: vglrun __path-to-STAR-CCM+-scripts__/starccm+ \\}{nl} \
'' -clientldpreload libdlfaker.so:libvglfaker.so'' \
| Failing to pass the aforementioned arguments to the STAR-CCM+ startup \
script prevents VirtualGL from being loaded into the application, \
resulting in unaccelerated OpenGL and error messages such as "ERROR: in \
isDisplayExcluded-- XX: Unexpected NULL condition" \
|
| Tecplot 360 | 2011 and earlier | Linux \
| Set the ''VGL_GLFLUSHTRIGGER'' environment variable to ''0'' prior to \
launching the application with ''vglrun'' \
Expand Down
9 changes: 8 additions & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="language" content="en">
<meta name="date" content="2024-07-19T11:22:10">
<meta name="date" content="2024-09-06T12:47:12">
<meta name="generator" content="deplate.rb 0.8.5">
<title>User&rsquo;s Guide for VirtualGL 3.1.2</title>
<link rel="start" href="index.html" title="Frontpage">
Expand Down Expand Up @@ -2196,6 +2196,13 @@ <h1 id="hd0014"><a name="file014"></a>14&nbsp;Other Application Recipes</h1>
<td class="standard"><code>vglrun -ld <em>path-to-PyTorch-libs</em> <em>application</em></code><br /> or<br /> <code>vglrun -nodl <em>application</em></code><br /></td>
<td class="standard">The PyTorch module and its dependency libraries are linked with a run-time library search path (rpath) of <code>$ORIGIN</code>, which would normally have the same effect as adding the directory in which the module is installed (for instance, <strong class="filename">/usr/local/lib64/python3.6/site-packages/torch/lib</strong>) to <code>LD_LIBRARY_PATH</code>. However, when VirtualGL is interposing the <code>dlopen()</code> function (which it does by default), this causes the actual <code>dlopen()</code> system calls to come from <strong class="filename">libdlfaker.so</strong>, so <code>$ORIGIN</code> will resolve to the directory in which the VirtualGL faker libraries are installed. This causes the <code>dlopen()</code> calls within the PyTorch module to fail. The workaround is to add the PyTorch module path to <code>LD_LIBRARY_PATH</code>, which is most easily accomplished with <code>vglrun&nbsp;-ld</code>, or to disable VirtualGL&rsquo;s <code>dlopen()</code> interposer.</td>
</tr>
<tr class="standard">
<td class="standard">Siemens Simcenter STAR-CCM+</td>
<td class="standard">v19.xx</td>
<td class="standard">Linux</td>
<td class="standard"><code>vglrun <em>path-to-STAR-CCM+-scripts</em>/starccm+ \</code><br /> <code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-clientldpreload&nbsp;libdlfaker.so:libvglfaker.so</code></td>
<td class="standard">Failing to pass the aforementioned arguments to the STAR-CCM+ startup script prevents VirtualGL from being loaded into the application, resulting in unaccelerated OpenGL and error messages such as &ldquo;ERROR: in isDisplayExcluded&ndash; XX: Unexpected NULL condition&rdquo;</td>
</tr>
<tr class="standard">
<td class="standard">Tecplot 360</td>
<td class="standard">2011 and earlier</td>
Expand Down

0 comments on commit cdda358

Please sign in to comment.