File: optional-test-matrices.patch

package info (click to toggle)
hipsparse 6.4.3-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,800 kB
  • sloc: cpp: 106,008; f90: 7,672; sh: 563; python: 533; makefile: 38; xml: 9
file content (32 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Sat, 8 Jul 2023 01:37:14 -0600
Subject: optional test matrices

Add an option to disable the use of downloaded matrix data with
-DWITH_TEST_MATRICES=OFF

Forwarded: no
---
 clients/tests/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/tests/CMakeLists.txt b/clients/tests/CMakeLists.txt
index 7051bf7..befb46e 100644
--- a/clients/tests/CMakeLists.txt
+++ b/clients/tests/CMakeLists.txt
@@ -27,6 +27,7 @@ find_package(GTest REQUIRED)
 #
 # Client matrices.
 #
+if(WITH_TEST_MATRICES)
 if(NOT EXISTS "${CMAKE_MATRICES_DIR}")
   #
   # Download.
@@ -57,6 +58,7 @@ else()
   endif()
 
 endif()
+endif(WITH_TEST_MATRICES)
 
 set(HIPSPARSE_TEST_SOURCES
   hipsparse_gtest_main.cpp