<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:35:41 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-17467] Incorrect checks for Nvidia libraries in configure</title>
                <link>https://jira.whamcloud.com/browse/LU-17467</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hello all, I was compiling lustre in a container and came across what I think is an error in the configure script.&lt;/p&gt;

&lt;p&gt;I have a nvidia gpu installed on the machine. I am trying to replicate a minimal build environment in a container and thus am &lt;b&gt;not&lt;/b&gt; installing cuda in it. When configuring, I set `--disable-server --disable-tests`. Got a Cuda error, no big deal, went to disable.&lt;/p&gt;

&lt;p&gt;I tried the following: `-&lt;del&gt;without-cuda --without-gds`, `&lt;/del&gt;-with-cuda=no --with-gds=no`, as the help page said they are equivalent.&lt;/p&gt;

&lt;p&gt;Turns out they are, because both gave me the same error:&lt;br/&gt;
```&lt;br/&gt;
checking for /no/nv-p2p.h... no&lt;br/&gt;
configure: error: CUDA sources don&apos;t found. nv-p2p.h don&apos;t exit&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Looking at the code, it seems disabling them sets their value to &apos;no&apos;, and the code checks for an empty parameter. It is set to &apos;no&apos;, so the code proceeds with them defined. `lnet/autoconf/lustre-lnet.m4`:&lt;/p&gt;

&lt;p&gt;```c&lt;br/&gt;
AS_IF(&lt;span class=&quot;error&quot;&gt;&amp;#91;test -n &amp;quot;${CUDA_PATH}&amp;quot; &amp;amp;&amp;amp; test -n &amp;quot;${GDS_PATH}&amp;quot;&amp;#93;&lt;/span&gt;,[&lt;br/&gt;
LB_CHECK_FILE(&lt;span class=&quot;error&quot;&gt;&amp;#91;$CUDA_PATH/nv-p2p.h&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	[&lt;br/&gt;
	AC_MSG_RESULT(&lt;span class=&quot;error&quot;&gt;&amp;#91;CUDA path is $CUDA_PATH&amp;#93;&lt;/span&gt;)&lt;br/&gt;
	AC_SUBST(CUDA_PATH)&lt;br/&gt;
	],&lt;br/&gt;
	[AC_MSG_ERROR(&lt;span class=&quot;error&quot;&gt;&amp;#91;CUDA sources not found. nv-p2p.h doesn&amp;#39;t exist&amp;#93;&lt;/span&gt;)]&lt;br/&gt;
)&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;Note the `test -n`. So yeah I thought that was worth reporting if there are no objections I would love to patch this out let me know how to proceed !&lt;/p&gt;</description>
                <environment>Linux arcV 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 GNU/Linux (Host)&lt;br/&gt;
Container image rockylinux:8&lt;br/&gt;
Nvidia GPU on machine - cuda not installed in container</environment>
        <key id="80337">LU-17467</key>
            <summary>Incorrect checks for Nvidia libraries in configure</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="3" iconUrl="https://jira.whamcloud.com/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="inprogress"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="jskutnik">Jean-Baptiste Skutnik</assignee>
                                    <reporter username="jskutnik">Jean-Baptiste Skutnik</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Jan 2024 18:30:21 +0000</created>
                <updated>Fri, 26 Jan 2024 16:34:15 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="401014" author="JIRAUSER18803" created="Wed, 24 Jan 2024 18:33:53 +0000"  >&lt;p&gt;Meant to say that this is on a fresh pull of the git,&lt;/p&gt;

&lt;p&gt;lustre-release&amp;gt; git describe&lt;br/&gt;
v2_15_60-25-gd30e1dc858&lt;/p&gt;</comment>
                            <comment id="401437" author="gerrit" created="Fri, 26 Jan 2024 16:34:15 +0000"  >&lt;p&gt;&quot;Jean-Baptiste Skutnik &amp;lt;jb.skutnik@gmail.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/53832&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/53832&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17467&quot; title=&quot;Incorrect checks for Nvidia libraries in configure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17467&quot;&gt;LU-17467&lt;/a&gt; build: Expand CUDA source detection logic&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b4046d705c79ae9dc89865d9a4404242cc6abc19&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i048yn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>