Skip to content

Commit 8db6b31

Browse files
committed
Extend the spec file to support CUDA_H_PATH
Extend the spec file to support passing a CUDA_H_PATH argument which will be passed to the configuration step (configure script). This will allow building an RPM with cuda configured. The value can be passed by --define "_cuda_h_path <PATH_TO_H_FILE>" Signed-off-by: Edward Srouji <[email protected]> Signed-off-by: Dmitry Akhmedzhanov <[email protected]>
1 parent e410bb2 commit 8db6b31

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

perftest.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ gen3 uverbs microbenchmarks
1616
%setup -q
1717

1818
%build
19-
%configure
19+
%configure \
20+
%if %{?_cuda_h_path:1}0
21+
CUDA_H_PATH=%{_cuda_h_path}
22+
%endif
2023
%{__make}
2124
chmod -x runme
2225

0 commit comments

Comments
 (0)