File: 0009-optional-rocsolver.patch

package info (click to toggle)
hipblas 6.4.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 26,548 kB
  • sloc: cpp: 209,856; f90: 49,800; python: 4,680; ansic: 1,141; sh: 799; makefile: 50; xml: 23
file content (2198 lines) | stat: -rw-r--r-- 113,587 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
From: daineAMD <daine.mcniven@amd.com>
Date: Wed, 7 Aug 2024 13:14:09 -0600
Subject: Load rocSOLVER with dlopen at runtime

This change allows hipBLAS to build without rocSOLVER available at
buildtime. By default, hipBLAS will try to find rocSOLVER at runtime
using dlopen().

Forwarded: https://github.com/ROCm/hipBLAS/pull/903
---
 CMakeLists.txt                                     |  16 +-
 clients/CMakeLists.txt                             |   3 +-
 clients/benchmarks/CMakeLists.txt                  |   5 +
 clients/common/cblas_interface.cpp                 |   2 +-
 clients/common/clients_common.cpp                  |   8 +-
 clients/common/hipblas_template_specialization.cpp |   2 +-
 clients/gtest/CMakeLists.txt                       |   9 +-
 clients/include/cblas_interface.h                  |   2 +-
 clients/include/hipblas.hpp                        |   2 +-
 library/src/CMakeLists.txt                         |   8 +-
 .../src/amd_detail/dlopen/load_function.hpp        |  27 +-
 library/src/amd_detail/dlopen/load_rocsolver.cpp   | 217 ++++++
 library/src/amd_detail/dlopen/load_rocsolver.hpp   | 806 +++++++++++++++++++++
 library/src/amd_detail/hipblas.cpp                 | 253 ++++++-
 library/src/nvidia_detail/hipblas.cpp              |   4 -
 15 files changed, 1324 insertions(+), 40 deletions(-)
 copy clients/include/arg_check.h => library/src/amd_detail/dlopen/load_function.hpp (74%)
 create mode 100644 library/src/amd_detail/dlopen/load_rocsolver.cpp
 create mode 100644 library/src/amd_detail/dlopen/load_rocsolver.hpp

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c63dfe1..745494c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,15 +71,19 @@ rocm_setup_version( VERSION ${VERSION_STRING} )
 
 option( BUILD_VERBOSE "Output additional build information" OFF )
 
-option( BUILD_WITH_SOLVER "Add additional functions from rocSOLVER" ON )
-
-if( BUILD_WITH_SOLVER )
-    add_definitions( -D__HIP_PLATFORM_SOLVER__ )
-endif( )
-
 # BUILD_SHARED_LIBS is a cmake built-in; we make it an explicit option such that it shows in cmake-gui
 option( BUILD_SHARED_LIBS "Build hipBLAS as a shared library" ON )
 
+if(BUILD_SHARED_LIBS)
+    set(BUILD_WITH_SOLVER_DEFAULT OFF)
+else()
+    set(BUILD_WITH_SOLVER_DEFAULT ON)
+endif()
+
+option( BUILD_WITH_SOLVER "Build hipBLAS with LAPACK functionality as provided by rocSOLVER available at build time (requires installed rocSOLVER dependency; only with AMD backend)" "${BUILD_WITH_SOLVER_DEFAULT}" )
+
+option(BUILD_SOLVER_TESTS "Build additional tests to cover LAPACK functionality provided by rocSOLVER with AMD backend" ON)
+
 # Deprecated USE_CUDA option
 if(DEFINED USE_CUDA)
   if(USE_CUDA)
diff --git a/clients/CMakeLists.txt b/clients/CMakeLists.txt
index 36dfceb..da87d38 100644
--- a/clients/CMakeLists.txt
+++ b/clients/CMakeLists.txt
@@ -94,8 +94,9 @@ endif()
 
 if( BUILD_CLIENTS_TESTS OR BUILD_CLIENTS_BENCHMARKS OR BUILD_CLIENTS_SAMPLES )
   if( NOT WIN32 )
-    if( BUILD_WITH_SOLVER )
+    if( BUILD_SOLVER_TESTS )
       add_library(hipblas_fortran_client STATIC ${hipblas_f90_source_clients_solver})
+
     else()
       add_library(hipblas_fortran_client STATIC ${hipblas_f90_source_clients_no_solver})
     endif()
diff --git a/clients/benchmarks/CMakeLists.txt b/clients/benchmarks/CMakeLists.txt
index d04d28e..535aff9 100644
--- a/clients/benchmarks/CMakeLists.txt
+++ b/clients/benchmarks/CMakeLists.txt
@@ -100,6 +100,11 @@ target_compile_options(hipblas_v2-bench PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${COMM
 target_compile_definitions( hipblas-bench PRIVATE HIPBLAS_BENCH ${COMMON_DEFINES} ${BLIS_DEFINES} )
 target_compile_definitions( hipblas_v2-bench PRIVATE HIPBLAS_BENCH ${COMMON_DEFINES} ${BLIS_DEFINES} HIPBLAS_V2 )
 
+if(BUILD_SOLVER_TESTS)
+  target_compile_definitions(hipblas-bench PRIVATE -DBUILD_SOLVER_TESTS)
+  target_compile_definitions(hipblas_v2-bench PRIVATE -DBUILD_SOLVER_TESTS)
+endif()
+
 target_link_libraries( hipblas-bench PRIVATE ${BLAS_LIBRARY} ${COMMON_LINK_LIBS} )
 target_link_libraries( hipblas_v2-bench PRIVATE ${BLAS_LIBRARY} ${COMMON_LINK_LIBS} )
 if (NOT WIN32)
diff --git a/clients/common/cblas_interface.cpp b/clients/common/cblas_interface.cpp
index 2ccc666..dc67c72 100644
--- a/clients/common/cblas_interface.cpp
+++ b/clients/common/cblas_interface.cpp
@@ -3957,7 +3957,7 @@ void ref_trmm<hipblasDoubleComplex>(hipblasSideMode_t           side,
  * ===========================================================================
  */
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
 
 // potrf
 template <>
diff --git a/clients/common/clients_common.cpp b/clients/common/clients_common.cpp
index bc84584..e42e86f 100644
--- a/clients/common/clients_common.cpp
+++ b/clients/common/clients_common.cpp
@@ -221,7 +221,7 @@
 #include "blas_ex/testing_trsm_ex.hpp"
 #include "blas_ex/testing_trsm_strided_batched_ex.hpp"
 // solver functions
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
 #include "solver/testing_gels.hpp"
 #include "solver/testing_gels_batched.hpp"
 #include "solver/testing_gels_strided_batched.hpp"
@@ -459,7 +459,7 @@ void get_test_name(const Arguments& arg, std::string& name)
         {"trtri_batched", testname_trtri_batched},
         {"trtri_strided_batched", testname_trtri_strided_batched},
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
         {"geqrf", testname_geqrf},
         {"geqrf_batched", testname_geqrf_batched},
         {"geqrf_strided_batched", testname_geqrf_strided_batched},
@@ -677,7 +677,7 @@ struct perf_blas<T, U, std::enable_if_t<std::is_same<T, float>{} || std::is_same
             {"trsm_strided_batched", testing_trsm_strided_batched<T>},
             {"trsm_strided_batched_ex", testing_trsm_strided_batched_ex<T>},
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
             {"geqrf", testing_geqrf<T>},
             {"geqrf_batched", testing_geqrf_batched<T>},
             {"geqrf_strided_batched", testing_geqrf_strided_batched<T>},
@@ -899,7 +899,7 @@ struct perf_blas<
             {"trmm_batched", testing_trmm_batched<T>},
             {"trmm_strided_batched", testing_trmm_strided_batched<T>},
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
             {"geqrf", testing_geqrf<T>},
             {"geqrf_batched", testing_geqrf_batched<T>},
             {"geqrf_strided_batched", testing_geqrf_strided_batched<T>},
diff --git a/clients/common/hipblas_template_specialization.cpp b/clients/common/hipblas_template_specialization.cpp
index b073cdc..6a17d2b 100644
--- a/clients/common/hipblas_template_specialization.cpp
+++ b/clients/common/hipblas_template_specialization.cpp
@@ -13798,7 +13798,7 @@ hipblasStatus_t hipblasZgeamStridedBatchedCast_64(hipblasHandle_t             ha
                                          batchCount);
 }
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
 
 // getrf
 hipblasStatus_t hipblasCgetrfCast(
diff --git a/clients/gtest/CMakeLists.txt b/clients/gtest/CMakeLists.txt
index 9858291..ab6eaa5 100644
--- a/clients/gtest/CMakeLists.txt
+++ b/clients/gtest/CMakeLists.txt
@@ -97,7 +97,7 @@ set(hipblas_test_source
   blas_ex/gemm_ex_gtest.cpp
 )
 
-if( BUILD_WITH_SOLVER )
+if( BUILD_SOLVER_TESTS )
   set( hipblas_solver_test_source
     solver/getrf_gtest.cpp
     solver/getrs_gtest.cpp
@@ -179,6 +179,11 @@ target_compile_options(hipblas_v2-test PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${COMMO
 target_compile_definitions( hipblas-test PRIVATE ${COMMON_DEFINES} )
 target_compile_definitions( hipblas_v2-test PRIVATE ${COMMON_DEFINES} HIPBLAS_V2 )
 
+if(BUILD_SOLVER_TESTS)
+  target_compile_definitions(hipblas-test PRIVATE -DBUILD_SOLVER_TESTS)
+  target_compile_definitions(hipblas_v2-test PRIVATE -DBUILD_SOLVER_TESTS)
+endif()
+
 target_link_libraries( hipblas-test PRIVATE ${BLAS_LIBRARY} ${COMMON_LINK_LIBS} )
 target_link_libraries( hipblas_v2-test PRIVATE ${BLAS_LIBRARY} ${COMMON_LINK_LIBS} )
 if (NOT WIN32)
@@ -275,7 +280,7 @@ set( HIPBLAS_L3_YAML_DATA blas3/dgmm_gtest.yaml blas3/geam_gtest.yaml blas3/gemm
 set( HIPBLAS_EX_YAML_DATA blas_ex/axpy_ex_gtest.yaml blas_ex/dot_ex_gtest.yaml blas_ex/nrm2_ex_gtest.yaml
                           blas_ex/rot_ex_gtest.yaml blas_ex/scal_ex_gtest.yaml blas_ex/gemm_ex_gtest.yaml blas_ex/trsm_ex_gtest.yaml )
 
-if( BUILD_WITH_SOLVER )
+if( BUILD_SOLVER_TESTS )
   set( HIPBLAS_SOLVER_YAML_DATA solver/gels_gtest.yaml solver/geqrf_gtest.yaml solver/getrf_gtest.yaml solver/getri_gtest.yaml solver/getrs_gtest.yaml )
 endif()
 
diff --git a/clients/include/cblas_interface.h b/clients/include/cblas_interface.h
index d167a5d..1750022 100644
--- a/clients/include/cblas_interface.h
+++ b/clients/include/cblas_interface.h
@@ -798,7 +798,7 @@ void ref_trmm(hipblasSideMode_t  side,
  * ===========================================================================
  */
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
 
 // potrf
 template <typename T>
diff --git a/clients/include/hipblas.hpp b/clients/include/hipblas.hpp
index 0175dd7..92556d7 100644
--- a/clients/include/hipblas.hpp
+++ b/clients/include/hipblas.hpp
@@ -11884,7 +11884,7 @@ namespace
     MAP2CF_V2(hipblasTrtriStridedBatched, hipblasComplex, hipblasCtrtriStridedBatched);
     MAP2CF_V2(hipblasTrtriStridedBatched, hipblasDoubleComplex, hipblasZtrtriStridedBatched);
 
-#ifdef __HIP_PLATFORM_SOLVER__
+#ifdef BUILD_SOLVER_TESTS
 
     // getrf
     template <typename T, bool FORTRAN = false>
diff --git a/library/src/CMakeLists.txt b/library/src/CMakeLists.txt
index 083e8eb..b9d8ca6 100755
--- a/library/src/CMakeLists.txt
+++ b/library/src/CMakeLists.txt
@@ -39,7 +39,7 @@ endfunction( )
 prepend_path( ".." hipblas_headers_public relative_hipblas_headers_public )
 
 if(HIP_PLATFORM STREQUAL amd)
-  set( hipblas_source "${CMAKE_CURRENT_SOURCE_DIR}/amd_detail/hipblas.cpp" )
+  set( hipblas_source "${CMAKE_CURRENT_SOURCE_DIR}/amd_detail/hipblas.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/amd_detail/dlopen/load_rocsolver.cpp" )
 else( )
   set( hipblas_source "${CMAKE_CURRENT_SOURCE_DIR}/nvidia_detail/hipblas.cpp" )
 endif( )
@@ -83,6 +83,10 @@ if(HIP_PLATFORM STREQUAL amd)
     endif( )
   endif( )
 
+  if(NOT BUILD_WITH_SOLVER)
+    target_link_libraries(hipblas PRIVATE $<$<PLATFORM_ID:Linux>:${CMAKE_DL_LIBS}>)
+  endif()
+
   list(APPEND static_depends PACKAGE rocblas)
   target_link_libraries( hipblas PRIVATE roc::rocblas )
   target_link_libraries( hipblas PUBLIC hip::host )
@@ -94,6 +98,8 @@ if(HIP_PLATFORM STREQUAL amd)
         set ( ENV{rocsolver_DIR} ${CUSTOM_ROCSOLVER})
         find_package( rocsolver REQUIRED CONFIG NO_CMAKE_PATH )
 
+        target_compile_definitions(hipblas PRIVATE -DBUILD_WITH_SOLVER)
+
         # in case of using custom rocsolver and not custom rocblas, we need to have
         # custom rocsolver include directories before rocblas/hip include directories
         # in case there is a rocsolver installed on the system.
diff --git a/clients/include/arg_check.h b/library/src/amd_detail/dlopen/load_function.hpp
similarity index 74%
copy from clients/include/arg_check.h
copy to library/src/amd_detail/dlopen/load_function.hpp
index 3571b6f..8e0defb 100644
--- a/clients/include/arg_check.h
+++ b/library/src/amd_detail/dlopen/load_function.hpp
@@ -1,5 +1,5 @@
 /* ************************************************************************
- * Copyright (C) 2016-2022 Advanced Micro Devices, Inc. All rights reserved.
+ * Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -21,16 +21,21 @@
  *
  * ************************************************************************ */
 
-#pragma once
-#ifndef _ARG_CHECK_H
-#define _ARG_CHECK_H
-
-#include "hipblas.h"
-
-#ifdef GOOGLE_TEST
-#include "gtest/gtest.h"
+#ifdef WIN32
+#include <windows.h>
+#else
+#include <dlfcn.h>
 #endif
 
-void verify_hipblas_status_invalid_value(hipblasStatus_t status, const char* message);
-
+template <typename Fn>
+bool load_function(void* handle, const char* symbol, Fn& fn)
+{
+#ifdef WIN32
+    fn       = (Fn)(GetProcAddress)((HMODULE)handle, symbol);
+    bool err = !fn;
+#else
+    fn        = (Fn)(dlsym(handle, symbol));
+    char* err = dlerror(); // clear errors
 #endif
+    return !err;
+}
diff --git a/library/src/amd_detail/dlopen/load_rocsolver.cpp b/library/src/amd_detail/dlopen/load_rocsolver.cpp
new file mode 100644
index 0000000..70aff81
--- /dev/null
+++ b/library/src/amd_detail/dlopen/load_rocsolver.cpp
@@ -0,0 +1,217 @@
+/* ************************************************************************
+ * Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * ************************************************************************ */
+
+#include "load_rocsolver.hpp"
+#include "load_function.hpp"
+
+#ifndef BUILD_WITH_SOLVER
+
+#define LOAD_FN(FN_)                              \
+    do                                            \
+    {                                             \
+        if(!load_function(handle, #FN_, g_##FN_)) \
+            return false;                         \
+    } while(0)
+
+/**
+ * function pointer variables to rocsolver functions used within hipBLAS
+ */
+fp_rocsolver_sgetrf                 g_rocsolver_sgetrf;
+fp_rocsolver_dgetrf                 g_rocsolver_dgetrf;
+fp_rocsolver_cgetrf                 g_rocsolver_cgetrf;
+fp_rocsolver_zgetrf                 g_rocsolver_zgetrf;
+fp_rocsolver_sgetrf_batched         g_rocsolver_sgetrf_batched;
+fp_rocsolver_dgetrf_batched         g_rocsolver_dgetrf_batched;
+fp_rocsolver_cgetrf_batched         g_rocsolver_cgetrf_batched;
+fp_rocsolver_zgetrf_batched         g_rocsolver_zgetrf_batched;
+fp_rocsolver_sgetrf_strided_batched g_rocsolver_sgetrf_strided_batched;
+fp_rocsolver_dgetrf_strided_batched g_rocsolver_dgetrf_strided_batched;
+fp_rocsolver_cgetrf_strided_batched g_rocsolver_cgetrf_strided_batched;
+fp_rocsolver_zgetrf_strided_batched g_rocsolver_zgetrf_strided_batched;
+
+fp_rocsolver_sgetrf_npvt                 g_rocsolver_sgetrf_npvt;
+fp_rocsolver_dgetrf_npvt                 g_rocsolver_dgetrf_npvt;
+fp_rocsolver_cgetrf_npvt                 g_rocsolver_cgetrf_npvt;
+fp_rocsolver_zgetrf_npvt                 g_rocsolver_zgetrf_npvt;
+fp_rocsolver_sgetrf_npvt_batched         g_rocsolver_sgetrf_npvt_batched;
+fp_rocsolver_dgetrf_npvt_batched         g_rocsolver_dgetrf_npvt_batched;
+fp_rocsolver_cgetrf_npvt_batched         g_rocsolver_cgetrf_npvt_batched;
+fp_rocsolver_zgetrf_npvt_batched         g_rocsolver_zgetrf_npvt_batched;
+fp_rocsolver_sgetrf_npvt_strided_batched g_rocsolver_sgetrf_npvt_strided_batched;
+fp_rocsolver_dgetrf_npvt_strided_batched g_rocsolver_dgetrf_npvt_strided_batched;
+fp_rocsolver_cgetrf_npvt_strided_batched g_rocsolver_cgetrf_npvt_strided_batched;
+fp_rocsolver_zgetrf_npvt_strided_batched g_rocsolver_zgetrf_npvt_strided_batched;
+
+fp_rocsolver_sgetrs                 g_rocsolver_sgetrs;
+fp_rocsolver_dgetrs                 g_rocsolver_dgetrs;
+fp_rocsolver_cgetrs                 g_rocsolver_cgetrs;
+fp_rocsolver_zgetrs                 g_rocsolver_zgetrs;
+fp_rocsolver_sgetrs_batched         g_rocsolver_sgetrs_batched;
+fp_rocsolver_dgetrs_batched         g_rocsolver_dgetrs_batched;
+fp_rocsolver_cgetrs_batched         g_rocsolver_cgetrs_batched;
+fp_rocsolver_zgetrs_batched         g_rocsolver_zgetrs_batched;
+fp_rocsolver_sgetrs_strided_batched g_rocsolver_sgetrs_strided_batched;
+fp_rocsolver_dgetrs_strided_batched g_rocsolver_dgetrs_strided_batched;
+fp_rocsolver_cgetrs_strided_batched g_rocsolver_cgetrs_strided_batched;
+fp_rocsolver_zgetrs_strided_batched g_rocsolver_zgetrs_strided_batched;
+
+fp_rocsolver_sgetri_outofplace_batched      g_rocsolver_sgetri_outofplace_batched;
+fp_rocsolver_dgetri_outofplace_batched      g_rocsolver_dgetri_outofplace_batched;
+fp_rocsolver_cgetri_outofplace_batched      g_rocsolver_cgetri_outofplace_batched;
+fp_rocsolver_zgetri_outofplace_batched      g_rocsolver_zgetri_outofplace_batched;
+fp_rocsolver_sgetri_npvt_outofplace_batched g_rocsolver_sgetri_npvt_outofplace_batched;
+fp_rocsolver_dgetri_npvt_outofplace_batched g_rocsolver_dgetri_npvt_outofplace_batched;
+fp_rocsolver_cgetri_npvt_outofplace_batched g_rocsolver_cgetri_npvt_outofplace_batched;
+fp_rocsolver_zgetri_npvt_outofplace_batched g_rocsolver_zgetri_npvt_outofplace_batched;
+
+fp_rocsolver_sgeqrf                 g_rocsolver_sgeqrf;
+fp_rocsolver_dgeqrf                 g_rocsolver_dgeqrf;
+fp_rocsolver_cgeqrf                 g_rocsolver_cgeqrf;
+fp_rocsolver_zgeqrf                 g_rocsolver_zgeqrf;
+fp_rocsolver_sgeqrf_ptr_batched     g_rocsolver_sgeqrf_ptr_batched;
+fp_rocsolver_dgeqrf_ptr_batched     g_rocsolver_dgeqrf_ptr_batched;
+fp_rocsolver_cgeqrf_ptr_batched     g_rocsolver_cgeqrf_ptr_batched;
+fp_rocsolver_zgeqrf_ptr_batched     g_rocsolver_zgeqrf_ptr_batched;
+fp_rocsolver_sgeqrf_strided_batched g_rocsolver_sgeqrf_strided_batched;
+fp_rocsolver_dgeqrf_strided_batched g_rocsolver_dgeqrf_strided_batched;
+fp_rocsolver_cgeqrf_strided_batched g_rocsolver_cgeqrf_strided_batched;
+fp_rocsolver_zgeqrf_strided_batched g_rocsolver_zgeqrf_strided_batched;
+
+fp_rocsolver_sgels                 g_rocsolver_sgels;
+fp_rocsolver_dgels                 g_rocsolver_dgels;
+fp_rocsolver_cgels                 g_rocsolver_cgels;
+fp_rocsolver_zgels                 g_rocsolver_zgels;
+fp_rocsolver_sgels_batched         g_rocsolver_sgels_batched;
+fp_rocsolver_dgels_batched         g_rocsolver_dgels_batched;
+fp_rocsolver_cgels_batched         g_rocsolver_cgels_batched;
+fp_rocsolver_zgels_batched         g_rocsolver_zgels_batched;
+fp_rocsolver_sgels_strided_batched g_rocsolver_sgels_strided_batched;
+fp_rocsolver_dgels_strided_batched g_rocsolver_dgels_strided_batched;
+fp_rocsolver_cgels_strided_batched g_rocsolver_cgels_strided_batched;
+fp_rocsolver_zgels_strided_batched g_rocsolver_zgels_strided_batched;
+
+static bool load_rocsolver()
+{
+#ifdef WIN32
+    void* handle = LoadLibraryW(L"rocsolver.dll");
+#else
+
+    // RTLD_NOW to load symbols now to avoid performance hit later
+    // RTLD_GLOBAL to load geqrf_ptr_batched declared symbols in hipblas.cpp
+    void* handle = dlopen("librocsolver.so.0", RTLD_NOW | RTLD_GLOBAL);
+    char* err    = dlerror();
+#endif
+
+    if(!handle)
+        return false;
+
+    LOAD_FN(rocsolver_sgetrf);
+    LOAD_FN(rocsolver_dgetrf);
+    LOAD_FN(rocsolver_cgetrf);
+    LOAD_FN(rocsolver_zgetrf);
+    LOAD_FN(rocsolver_sgetrf_batched);
+    LOAD_FN(rocsolver_dgetrf_batched);
+    LOAD_FN(rocsolver_cgetrf_batched);
+    LOAD_FN(rocsolver_zgetrf_batched);
+    LOAD_FN(rocsolver_sgetrf_strided_batched);
+    LOAD_FN(rocsolver_dgetrf_strided_batched);
+    LOAD_FN(rocsolver_cgetrf_strided_batched);
+    LOAD_FN(rocsolver_zgetrf_strided_batched);
+
+    LOAD_FN(rocsolver_sgetrf_npvt);
+    LOAD_FN(rocsolver_dgetrf_npvt);
+    LOAD_FN(rocsolver_cgetrf_npvt);
+    LOAD_FN(rocsolver_zgetrf_npvt);
+    LOAD_FN(rocsolver_sgetrf_npvt_batched);
+    LOAD_FN(rocsolver_dgetrf_npvt_batched);
+    LOAD_FN(rocsolver_cgetrf_npvt_batched);
+    LOAD_FN(rocsolver_zgetrf_npvt_batched);
+    LOAD_FN(rocsolver_sgetrf_npvt_strided_batched);
+    LOAD_FN(rocsolver_dgetrf_npvt_strided_batched);
+    LOAD_FN(rocsolver_cgetrf_npvt_strided_batched);
+    LOAD_FN(rocsolver_zgetrf_npvt_strided_batched);
+
+    LOAD_FN(rocsolver_sgetrs);
+    LOAD_FN(rocsolver_dgetrs);
+    LOAD_FN(rocsolver_cgetrs);
+    LOAD_FN(rocsolver_zgetrs);
+    LOAD_FN(rocsolver_sgetrs_batched);
+    LOAD_FN(rocsolver_dgetrs_batched);
+    LOAD_FN(rocsolver_cgetrs_batched);
+    LOAD_FN(rocsolver_zgetrs_batched);
+    LOAD_FN(rocsolver_sgetrs_strided_batched);
+    LOAD_FN(rocsolver_dgetrs_strided_batched);
+    LOAD_FN(rocsolver_cgetrs_strided_batched);
+    LOAD_FN(rocsolver_zgetrs_strided_batched);
+
+    LOAD_FN(rocsolver_sgetri_outofplace_batched);
+    LOAD_FN(rocsolver_dgetri_outofplace_batched);
+    LOAD_FN(rocsolver_cgetri_outofplace_batched);
+    LOAD_FN(rocsolver_zgetri_outofplace_batched);
+    LOAD_FN(rocsolver_sgetri_npvt_outofplace_batched);
+    LOAD_FN(rocsolver_dgetri_npvt_outofplace_batched);
+    LOAD_FN(rocsolver_cgetri_npvt_outofplace_batched);
+    LOAD_FN(rocsolver_zgetri_npvt_outofplace_batched);
+
+    LOAD_FN(rocsolver_sgeqrf);
+    LOAD_FN(rocsolver_dgeqrf);
+    LOAD_FN(rocsolver_cgeqrf);
+    LOAD_FN(rocsolver_zgeqrf);
+    LOAD_FN(rocsolver_sgeqrf_ptr_batched);
+    LOAD_FN(rocsolver_dgeqrf_ptr_batched);
+    LOAD_FN(rocsolver_cgeqrf_ptr_batched);
+    LOAD_FN(rocsolver_zgeqrf_ptr_batched);
+    LOAD_FN(rocsolver_sgeqrf_strided_batched);
+    LOAD_FN(rocsolver_dgeqrf_strided_batched);
+    LOAD_FN(rocsolver_cgeqrf_strided_batched);
+    LOAD_FN(rocsolver_zgeqrf_strided_batched);
+
+    LOAD_FN(rocsolver_sgels);
+    LOAD_FN(rocsolver_dgels);
+    LOAD_FN(rocsolver_cgels);
+    LOAD_FN(rocsolver_zgels);
+    LOAD_FN(rocsolver_sgels_batched);
+    LOAD_FN(rocsolver_dgels_batched);
+    LOAD_FN(rocsolver_cgels_batched);
+    LOAD_FN(rocsolver_zgels_batched);
+    LOAD_FN(rocsolver_sgels_strided_batched);
+    LOAD_FN(rocsolver_dgels_strided_batched);
+    LOAD_FN(rocsolver_cgels_strided_batched);
+    LOAD_FN(rocsolver_zgels_strided_batched);
+
+    return true;
+}
+
+#undef LOAD_FN
+
+#endif // BUILD_WITH_SOLVER
+
+bool try_load_rocsolver()
+{
+#ifndef BUILD_WITH_SOLVER
+    static bool result = load_rocsolver();
+    return result;
+#else
+    return true;
+#endif
+}
diff --git a/library/src/amd_detail/dlopen/load_rocsolver.hpp b/library/src/amd_detail/dlopen/load_rocsolver.hpp
new file mode 100644
index 0000000..bb548b3
--- /dev/null
+++ b/library/src/amd_detail/dlopen/load_rocsolver.hpp
@@ -0,0 +1,806 @@
+/* ************************************************************************
+ * Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * ************************************************************************ */
+
+#if BUILD_WITH_SOLVER
+
+#include <rocsolver/rocsolver.h>
+
+#else
+
+#include "rocblas/rocblas.h"
+// function pointer declarations
+
+// getrf
+using fp_rocsolver_sgetrf      = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               float*,
+                                               const rocblas_int,
+                                               rocblas_int*,
+                                               rocblas_int*);
+using fp_rocsolver_dgetrf      = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               double*,
+                                               const rocblas_int,
+                                               rocblas_int*,
+                                               rocblas_int*);
+using fp_rocsolver_cgetrf      = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               rocblas_float_complex*,
+                                               const rocblas_int,
+                                               rocblas_int*,
+                                               rocblas_int*);
+using fp_rocsolver_zgetrf      = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               rocblas_double_complex*,
+                                               const rocblas_int,
+                                               rocblas_int*,
+                                               rocblas_int*);
+using fp_rocsolver_sgetrf_npvt = rocblas_status (*)(
+    rocblas_handle, const rocblas_int, const rocblas_int, float*, rocblas_int, rocblas_int*);
+using fp_rocsolver_dgetrf_npvt = rocblas_status (*)(
+    rocblas_handle, const rocblas_int, const rocblas_int, double*, rocblas_int, rocblas_int*);
+using fp_rocsolver_cgetrf_npvt = rocblas_status (*)(rocblas_handle,
+                                                    const rocblas_int,
+                                                    const rocblas_int,
+                                                    rocblas_float_complex*,
+                                                    rocblas_int,
+                                                    rocblas_int*);
+using fp_rocsolver_zgetrf_npvt = rocblas_status (*)(rocblas_handle,
+                                                    const rocblas_int,
+                                                    const rocblas_int,
+                                                    rocblas_double_complex*,
+                                                    rocblas_int,
+                                                    rocblas_int*);
+
+// getrf_batched
+using fp_rocsolver_sgetrf_batched      = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       float* const*,
+                                                       const rocblas_int,
+                                                       rocblas_int*,
+                                                       const rocblas_stride,
+                                                       rocblas_int*,
+                                                       const rocblas_int);
+using fp_rocsolver_dgetrf_batched      = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       double* const*,
+                                                       const rocblas_int,
+                                                       rocblas_int*,
+                                                       const rocblas_stride,
+                                                       rocblas_int*,
+                                                       const rocblas_int);
+using fp_rocsolver_cgetrf_batched      = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       rocblas_float_complex* const*,
+                                                       const rocblas_int,
+                                                       rocblas_int*,
+                                                       const rocblas_stride,
+                                                       rocblas_int*,
+                                                       const rocblas_int);
+using fp_rocsolver_zgetrf_batched      = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       rocblas_double_complex* const*,
+                                                       const rocblas_int,
+                                                       rocblas_int*,
+                                                       const rocblas_stride,
+                                                       rocblas_int*,
+                                                       const rocblas_int);
+using fp_rocsolver_sgetrf_npvt_batched = rocblas_status (*)(rocblas_handle,
+                                                            const rocblas_int,
+                                                            const rocblas_int,
+                                                            float* const*,
+                                                            const rocblas_int,
+                                                            rocblas_int*,
+                                                            const rocblas_int);
+using fp_rocsolver_dgetrf_npvt_batched = rocblas_status (*)(rocblas_handle,
+                                                            const rocblas_int,
+                                                            const rocblas_int,
+                                                            double* const*,
+                                                            const rocblas_int,
+                                                            rocblas_int*,
+                                                            const rocblas_int);
+using fp_rocsolver_cgetrf_npvt_batched = rocblas_status (*)(rocblas_handle,
+                                                            const rocblas_int,
+                                                            const rocblas_int,
+                                                            rocblas_float_complex* const*,
+                                                            const rocblas_int,
+                                                            rocblas_int*,
+                                                            const rocblas_int);
+using fp_rocsolver_zgetrf_npvt_batched = rocblas_status (*)(rocblas_handle,
+                                                            const rocblas_int,
+                                                            const rocblas_int,
+                                                            rocblas_double_complex* const*,
+                                                            const rocblas_int,
+                                                            rocblas_int*,
+                                                            const rocblas_int);
+
+// getrf_strided_batched
+using fp_rocsolver_sgetrf_strided_batched      = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               float*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_int);
+using fp_rocsolver_dgetrf_strided_batched      = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               double*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_int);
+using fp_rocsolver_cgetrf_strided_batched      = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               rocblas_float_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_int);
+using fp_rocsolver_zgetrf_strided_batched      = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               rocblas_double_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_stride,
+                                                               rocblas_int*,
+                                                               const rocblas_int);
+using fp_rocsolver_sgetrf_npvt_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                                    const rocblas_int,
+                                                                    const rocblas_int,
+                                                                    float*,
+                                                                    const rocblas_int,
+                                                                    const rocblas_stride,
+                                                                    rocblas_int*,
+                                                                    const rocblas_int);
+using fp_rocsolver_dgetrf_npvt_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                                    const rocblas_int,
+                                                                    const rocblas_int,
+                                                                    double*,
+                                                                    const rocblas_int,
+                                                                    const rocblas_stride,
+                                                                    rocblas_int*,
+                                                                    const rocblas_int);
+using fp_rocsolver_cgetrf_npvt_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                                    const rocblas_int,
+                                                                    const rocblas_int,
+                                                                    rocblas_float_complex*,
+                                                                    const rocblas_int,
+                                                                    const rocblas_stride,
+                                                                    rocblas_int*,
+                                                                    const rocblas_int);
+using fp_rocsolver_zgetrf_npvt_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                                    const rocblas_int,
+                                                                    const rocblas_int,
+                                                                    rocblas_double_complex*,
+                                                                    const rocblas_int,
+                                                                    const rocblas_stride,
+                                                                    rocblas_int*,
+                                                                    const rocblas_int);
+
+// getrs
+using fp_rocsolver_sgetrs = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_operation,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               float*,
+                                               const rocblas_int,
+                                               const rocblas_int*,
+                                               float*,
+                                               const rocblas_int);
+using fp_rocsolver_dgetrs = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_operation,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               double*,
+                                               const rocblas_int,
+                                               const rocblas_int*,
+                                               double*,
+                                               const rocblas_int);
+using fp_rocsolver_cgetrs = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_operation,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               rocblas_float_complex*,
+                                               const rocblas_int,
+                                               const rocblas_int*,
+                                               rocblas_float_complex*,
+                                               const rocblas_int);
+using fp_rocsolver_zgetrs = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_operation,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               rocblas_double_complex*,
+                                               const rocblas_int,
+                                               const rocblas_int*,
+                                               rocblas_double_complex*,
+                                               const rocblas_int);
+
+using fp_rocsolver_sgetrs_batched = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_operation,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       float* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int*,
+                                                       const rocblas_stride,
+                                                       float* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int);
+using fp_rocsolver_dgetrs_batched = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_operation,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       double* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int*,
+                                                       const rocblas_stride,
+                                                       double* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int);
+using fp_rocsolver_cgetrs_batched = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_operation,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       rocblas_float_complex* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int*,
+                                                       const rocblas_stride,
+                                                       rocblas_float_complex* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int);
+using fp_rocsolver_zgetrs_batched = rocblas_status (*)(rocblas_handle,
+                                                       const rocblas_operation,
+                                                       const rocblas_int,
+                                                       const rocblas_int,
+                                                       rocblas_double_complex* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int*,
+                                                       const rocblas_stride,
+                                                       rocblas_double_complex* const*,
+                                                       const rocblas_int,
+                                                       const rocblas_int);
+
+using fp_rocsolver_sgetrs_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_operation,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               float*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int*,
+                                                               const rocblas_stride,
+                                                               float*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+using fp_rocsolver_dgetrs_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_operation,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               double*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int*,
+                                                               const rocblas_stride,
+                                                               double*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+using fp_rocsolver_cgetrs_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_operation,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               rocblas_float_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int*,
+                                                               const rocblas_stride,
+                                                               rocblas_float_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+using fp_rocsolver_zgetrs_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_operation,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               rocblas_double_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int*,
+                                                               const rocblas_stride,
+                                                               rocblas_double_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+
+// getri_batched
+using fp_rocsolver_sgetri_outofplace_batched = rocblas_status (*)(rocblas_handle,
+                                                                  const rocblas_int,
+                                                                  float* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_stride,
+                                                                  float* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_int);
+using fp_rocsolver_dgetri_outofplace_batched = rocblas_status (*)(rocblas_handle,
+                                                                  const rocblas_int,
+                                                                  double* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_stride,
+                                                                  double* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_int);
+using fp_rocsolver_cgetri_outofplace_batched = rocblas_status (*)(rocblas_handle,
+                                                                  const rocblas_int,
+                                                                  rocblas_float_complex* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_stride,
+                                                                  rocblas_float_complex* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_int);
+using fp_rocsolver_zgetri_outofplace_batched = rocblas_status (*)(rocblas_handle,
+                                                                  const rocblas_int,
+                                                                  rocblas_double_complex* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_stride,
+                                                                  rocblas_double_complex* const*,
+                                                                  const rocblas_int,
+                                                                  rocblas_int*,
+                                                                  const rocblas_int);
+
+using fp_rocsolver_sgetri_npvt_outofplace_batched = rocblas_status (*)(rocblas_handle,
+                                                                       const rocblas_int,
+                                                                       float* const*,
+                                                                       const rocblas_int,
+                                                                       float* const*,
+                                                                       const rocblas_int,
+                                                                       rocblas_int*,
+                                                                       const rocblas_int);
+using fp_rocsolver_dgetri_npvt_outofplace_batched = rocblas_status (*)(rocblas_handle,
+                                                                       const rocblas_int,
+                                                                       double* const*,
+                                                                       const rocblas_int,
+                                                                       double* const*,
+                                                                       const rocblas_int,
+                                                                       rocblas_int*,
+                                                                       const rocblas_int);
+using fp_rocsolver_cgetri_npvt_outofplace_batched
+    = rocblas_status (*)(rocblas_handle,
+                         const rocblas_int,
+                         rocblas_float_complex* const*,
+                         const rocblas_int,
+                         rocblas_float_complex* const*,
+                         const rocblas_int,
+                         rocblas_int*,
+                         const rocblas_int);
+using fp_rocsolver_zgetri_npvt_outofplace_batched
+    = rocblas_status (*)(rocblas_handle,
+                         const rocblas_int,
+                         rocblas_double_complex* const*,
+                         const rocblas_int,
+                         rocblas_double_complex* const*,
+                         const rocblas_int,
+                         rocblas_int*,
+                         const rocblas_int);
+
+// geqrf
+using fp_rocsolver_sgeqrf = rocblas_status (*)(
+    rocblas_handle, const rocblas_int, const rocblas_int, float*, const rocblas_int, float*);
+using fp_rocsolver_dgeqrf = rocblas_status (*)(
+    rocblas_handle, const rocblas_int, const rocblas_int, double*, const rocblas_int, double*);
+using fp_rocsolver_cgeqrf = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               rocblas_float_complex*,
+                                               const rocblas_int,
+                                               rocblas_float_complex*);
+using fp_rocsolver_zgeqrf = rocblas_status (*)(rocblas_handle,
+                                               const rocblas_int,
+                                               const rocblas_int,
+                                               rocblas_double_complex*,
+                                               const rocblas_int,
+                                               rocblas_double_complex*);
+
+using fp_rocsolver_sgeqrf_ptr_batched = rocblas_status (*)(rocblas_handle,
+                                                           const rocblas_int,
+                                                           const rocblas_int,
+                                                           float* const*,
+                                                           const rocblas_int,
+                                                           float* const*,
+                                                           const rocblas_int);
+using fp_rocsolver_dgeqrf_ptr_batched = rocblas_status (*)(rocblas_handle,
+                                                           const rocblas_int,
+                                                           const rocblas_int,
+                                                           double* const*,
+                                                           const rocblas_int,
+                                                           double* const*,
+                                                           const rocblas_int);
+using fp_rocsolver_cgeqrf_ptr_batched = rocblas_status (*)(rocblas_handle,
+                                                           const rocblas_int,
+                                                           const rocblas_int,
+                                                           rocblas_float_complex* const*,
+                                                           const rocblas_int,
+                                                           rocblas_float_complex* const*,
+                                                           const rocblas_int);
+using fp_rocsolver_zgeqrf_ptr_batched = rocblas_status (*)(rocblas_handle,
+                                                           const rocblas_int,
+                                                           const rocblas_int,
+                                                           rocblas_double_complex* const*,
+                                                           const rocblas_int,
+                                                           rocblas_double_complex* const*,
+                                                           const rocblas_int);
+
+using fp_rocsolver_sgeqrf_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               float*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               float*,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+using fp_rocsolver_dgeqrf_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               double*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               double*,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+using fp_rocsolver_cgeqrf_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               rocblas_float_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               rocblas_float_complex*,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+using fp_rocsolver_zgeqrf_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                               const rocblas_int,
+                                                               const rocblas_int,
+                                                               rocblas_double_complex*,
+                                                               const rocblas_int,
+                                                               const rocblas_stride,
+                                                               rocblas_double_complex*,
+                                                               const rocblas_stride,
+                                                               const rocblas_int);
+
+// gels
+using fp_rocsolver_sgels = rocblas_status (*)(rocblas_handle,
+                                              rocblas_operation,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              float*,
+                                              const rocblas_int,
+                                              float*,
+                                              const rocblas_int,
+                                              rocblas_int*);
+using fp_rocsolver_dgels = rocblas_status (*)(rocblas_handle,
+                                              rocblas_operation,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              double*,
+                                              const rocblas_int,
+                                              double*,
+                                              const rocblas_int,
+                                              rocblas_int*);
+using fp_rocsolver_cgels = rocblas_status (*)(rocblas_handle,
+                                              rocblas_operation,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              rocblas_float_complex*,
+                                              const rocblas_int,
+                                              rocblas_float_complex*,
+                                              const rocblas_int,
+                                              rocblas_int*);
+using fp_rocsolver_zgels = rocblas_status (*)(rocblas_handle,
+                                              rocblas_operation,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              const rocblas_int,
+                                              rocblas_double_complex*,
+                                              const rocblas_int,
+                                              rocblas_double_complex*,
+                                              const rocblas_int,
+                                              rocblas_int*);
+
+using fp_rocsolver_sgels_batched = rocblas_status (*)(rocblas_handle,
+                                                      rocblas_operation,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      float* const*,
+                                                      const rocblas_int,
+                                                      float* const*,
+                                                      const rocblas_int,
+                                                      rocblas_int*,
+                                                      const rocblas_int);
+using fp_rocsolver_dgels_batched = rocblas_status (*)(rocblas_handle,
+                                                      rocblas_operation,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      double* const*,
+                                                      const rocblas_int,
+                                                      double* const*,
+                                                      const rocblas_int,
+                                                      rocblas_int*,
+                                                      const rocblas_int);
+using fp_rocsolver_cgels_batched = rocblas_status (*)(rocblas_handle,
+                                                      rocblas_operation,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      rocblas_float_complex* const*,
+                                                      const rocblas_int,
+                                                      rocblas_float_complex* const*,
+                                                      const rocblas_int,
+                                                      rocblas_int*,
+                                                      const rocblas_int);
+using fp_rocsolver_zgels_batched = rocblas_status (*)(rocblas_handle,
+                                                      rocblas_operation,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      const rocblas_int,
+                                                      rocblas_double_complex* const*,
+                                                      const rocblas_int,
+                                                      rocblas_double_complex* const*,
+                                                      const rocblas_int,
+                                                      rocblas_int*,
+                                                      const rocblas_int);
+
+using fp_rocsolver_sgels_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                              rocblas_operation,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              float*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              float*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              rocblas_int*,
+                                                              const rocblas_int);
+using fp_rocsolver_dgels_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                              rocblas_operation,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              double*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              double*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              rocblas_int*,
+                                                              const rocblas_int);
+using fp_rocsolver_cgels_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                              rocblas_operation,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              rocblas_float_complex*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              rocblas_float_complex*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              rocblas_int*,
+                                                              const rocblas_int);
+using fp_rocsolver_zgels_strided_batched = rocblas_status (*)(rocblas_handle,
+                                                              rocblas_operation,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              const rocblas_int,
+                                                              rocblas_double_complex*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              rocblas_double_complex*,
+                                                              const rocblas_int,
+                                                              const rocblas_stride,
+                                                              rocblas_int*,
+                                                              const rocblas_int);
+
+extern fp_rocsolver_sgetrf                 g_rocsolver_sgetrf; // our global function pointer
+extern fp_rocsolver_dgetrf                 g_rocsolver_dgetrf;
+extern fp_rocsolver_cgetrf                 g_rocsolver_cgetrf;
+extern fp_rocsolver_zgetrf                 g_rocsolver_zgetrf;
+extern fp_rocsolver_sgetrf_batched         g_rocsolver_sgetrf_batched;
+extern fp_rocsolver_dgetrf_batched         g_rocsolver_dgetrf_batched;
+extern fp_rocsolver_cgetrf_batched         g_rocsolver_cgetrf_batched;
+extern fp_rocsolver_zgetrf_batched         g_rocsolver_zgetrf_batched;
+extern fp_rocsolver_sgetrf_strided_batched g_rocsolver_sgetrf_strided_batched;
+extern fp_rocsolver_dgetrf_strided_batched g_rocsolver_dgetrf_strided_batched;
+extern fp_rocsolver_cgetrf_strided_batched g_rocsolver_cgetrf_strided_batched;
+extern fp_rocsolver_zgetrf_strided_batched g_rocsolver_zgetrf_strided_batched;
+
+extern fp_rocsolver_sgetrf_npvt                 g_rocsolver_sgetrf_npvt;
+extern fp_rocsolver_dgetrf_npvt                 g_rocsolver_dgetrf_npvt;
+extern fp_rocsolver_cgetrf_npvt                 g_rocsolver_cgetrf_npvt;
+extern fp_rocsolver_zgetrf_npvt                 g_rocsolver_zgetrf_npvt;
+extern fp_rocsolver_sgetrf_npvt_batched         g_rocsolver_sgetrf_npvt_batched;
+extern fp_rocsolver_dgetrf_npvt_batched         g_rocsolver_dgetrf_npvt_batched;
+extern fp_rocsolver_cgetrf_npvt_batched         g_rocsolver_cgetrf_npvt_batched;
+extern fp_rocsolver_zgetrf_npvt_batched         g_rocsolver_zgetrf_npvt_batched;
+extern fp_rocsolver_sgetrf_npvt_strided_batched g_rocsolver_sgetrf_npvt_strided_batched;
+extern fp_rocsolver_dgetrf_npvt_strided_batched g_rocsolver_dgetrf_npvt_strided_batched;
+extern fp_rocsolver_cgetrf_npvt_strided_batched g_rocsolver_cgetrf_npvt_strided_batched;
+extern fp_rocsolver_zgetrf_npvt_strided_batched g_rocsolver_zgetrf_npvt_strided_batched;
+
+extern fp_rocsolver_sgetrs                 g_rocsolver_sgetrs;
+extern fp_rocsolver_dgetrs                 g_rocsolver_dgetrs;
+extern fp_rocsolver_cgetrs                 g_rocsolver_cgetrs;
+extern fp_rocsolver_zgetrs                 g_rocsolver_zgetrs;
+extern fp_rocsolver_sgetrs_batched         g_rocsolver_sgetrs_batched;
+extern fp_rocsolver_dgetrs_batched         g_rocsolver_dgetrs_batched;
+extern fp_rocsolver_cgetrs_batched         g_rocsolver_cgetrs_batched;
+extern fp_rocsolver_zgetrs_batched         g_rocsolver_zgetrs_batched;
+extern fp_rocsolver_sgetrs_strided_batched g_rocsolver_sgetrs_strided_batched;
+extern fp_rocsolver_dgetrs_strided_batched g_rocsolver_dgetrs_strided_batched;
+extern fp_rocsolver_cgetrs_strided_batched g_rocsolver_cgetrs_strided_batched;
+extern fp_rocsolver_zgetrs_strided_batched g_rocsolver_zgetrs_strided_batched;
+
+extern fp_rocsolver_sgetri_outofplace_batched      g_rocsolver_sgetri_outofplace_batched;
+extern fp_rocsolver_dgetri_outofplace_batched      g_rocsolver_dgetri_outofplace_batched;
+extern fp_rocsolver_cgetri_outofplace_batched      g_rocsolver_cgetri_outofplace_batched;
+extern fp_rocsolver_zgetri_outofplace_batched      g_rocsolver_zgetri_outofplace_batched;
+extern fp_rocsolver_sgetri_npvt_outofplace_batched g_rocsolver_sgetri_npvt_outofplace_batched;
+extern fp_rocsolver_dgetri_npvt_outofplace_batched g_rocsolver_dgetri_npvt_outofplace_batched;
+extern fp_rocsolver_cgetri_npvt_outofplace_batched g_rocsolver_cgetri_npvt_outofplace_batched;
+extern fp_rocsolver_zgetri_npvt_outofplace_batched g_rocsolver_zgetri_npvt_outofplace_batched;
+
+extern fp_rocsolver_sgeqrf                 g_rocsolver_sgeqrf;
+extern fp_rocsolver_dgeqrf                 g_rocsolver_dgeqrf;
+extern fp_rocsolver_cgeqrf                 g_rocsolver_cgeqrf;
+extern fp_rocsolver_zgeqrf                 g_rocsolver_zgeqrf;
+extern fp_rocsolver_sgeqrf_ptr_batched     g_rocsolver_sgeqrf_ptr_batched;
+extern fp_rocsolver_dgeqrf_ptr_batched     g_rocsolver_dgeqrf_ptr_batched;
+extern fp_rocsolver_cgeqrf_ptr_batched     g_rocsolver_cgeqrf_ptr_batched;
+extern fp_rocsolver_zgeqrf_ptr_batched     g_rocsolver_zgeqrf_ptr_batched;
+extern fp_rocsolver_sgeqrf_strided_batched g_rocsolver_sgeqrf_strided_batched;
+extern fp_rocsolver_dgeqrf_strided_batched g_rocsolver_dgeqrf_strided_batched;
+extern fp_rocsolver_cgeqrf_strided_batched g_rocsolver_cgeqrf_strided_batched;
+extern fp_rocsolver_zgeqrf_strided_batched g_rocsolver_zgeqrf_strided_batched;
+
+extern fp_rocsolver_sgels                 g_rocsolver_sgels;
+extern fp_rocsolver_dgels                 g_rocsolver_dgels;
+extern fp_rocsolver_cgels                 g_rocsolver_cgels;
+extern fp_rocsolver_zgels                 g_rocsolver_zgels;
+extern fp_rocsolver_sgels_batched         g_rocsolver_sgels_batched;
+extern fp_rocsolver_dgels_batched         g_rocsolver_dgels_batched;
+extern fp_rocsolver_cgels_batched         g_rocsolver_cgels_batched;
+extern fp_rocsolver_zgels_batched         g_rocsolver_zgels_batched;
+extern fp_rocsolver_sgels_strided_batched g_rocsolver_sgels_strided_batched;
+extern fp_rocsolver_dgels_strided_batched g_rocsolver_dgels_strided_batched;
+extern fp_rocsolver_cgels_strided_batched g_rocsolver_cgels_strided_batched;
+extern fp_rocsolver_zgels_strided_batched g_rocsolver_zgels_strided_batched;
+
+#define rocsolver_sgetrf g_rocsolver_sgetrf
+#define rocsolver_dgetrf g_rocsolver_dgetrf
+#define rocsolver_cgetrf g_rocsolver_cgetrf
+#define rocsolver_zgetrf g_rocsolver_zgetrf
+#define rocsolver_sgetrf_batched g_rocsolver_sgetrf_batched
+#define rocsolver_dgetrf_batched g_rocsolver_dgetrf_batched
+#define rocsolver_cgetrf_batched g_rocsolver_cgetrf_batched
+#define rocsolver_zgetrf_batched g_rocsolver_zgetrf_batched
+#define rocsolver_sgetrf_strided_batched g_rocsolver_sgetrf_strided_batched
+#define rocsolver_dgetrf_strided_batched g_rocsolver_dgetrf_strided_batched
+#define rocsolver_cgetrf_strided_batched g_rocsolver_cgetrf_strided_batched
+#define rocsolver_zgetrf_strided_batched g_rocsolver_zgetrf_strided_batched
+
+#define rocsolver_sgetrf_npvt g_rocsolver_sgetrf_npvt
+#define rocsolver_dgetrf_npvt g_rocsolver_dgetrf_npvt
+#define rocsolver_cgetrf_npvt g_rocsolver_cgetrf_npvt
+#define rocsolver_zgetrf_npvt g_rocsolver_zgetrf_npvt
+#define rocsolver_sgetrf_npvt_batched g_rocsolver_sgetrf_npvt_batched
+#define rocsolver_dgetrf_npvt_batched g_rocsolver_dgetrf_npvt_batched
+#define rocsolver_cgetrf_npvt_batched g_rocsolver_cgetrf_npvt_batched
+#define rocsolver_zgetrf_npvt_batched g_rocsolver_zgetrf_npvt_batched
+#define rocsolver_sgetrf_npvt_strided_batched g_rocsolver_sgetrf_npvt_strided_batched
+#define rocsolver_dgetrf_npvt_strided_batched g_rocsolver_dgetrf_npvt_strided_batched
+#define rocsolver_cgetrf_npvt_strided_batched g_rocsolver_cgetrf_npvt_strided_batched
+#define rocsolver_zgetrf_npvt_strided_batched g_rocsolver_zgetrf_npvt_strided_batched
+
+#define rocsolver_sgetrs g_rocsolver_sgetrs
+#define rocsolver_dgetrs g_rocsolver_dgetrs
+#define rocsolver_cgetrs g_rocsolver_cgetrs
+#define rocsolver_zgetrs g_rocsolver_zgetrs
+#define rocsolver_sgetrs_batched g_rocsolver_sgetrs_batched
+#define rocsolver_dgetrs_batched g_rocsolver_dgetrs_batched
+#define rocsolver_cgetrs_batched g_rocsolver_cgetrs_batched
+#define rocsolver_zgetrs_batched g_rocsolver_zgetrs_batched
+#define rocsolver_sgetrs_strided_batched g_rocsolver_sgetrs_strided_batched
+#define rocsolver_dgetrs_strided_batched g_rocsolver_dgetrs_strided_batched
+#define rocsolver_cgetrs_strided_batched g_rocsolver_cgetrs_strided_batched
+#define rocsolver_zgetrs_strided_batched g_rocsolver_zgetrs_strided_batched
+
+#define rocsolver_sgetri_outofplace_batched g_rocsolver_sgetri_outofplace_batched
+#define rocsolver_dgetri_outofplace_batched g_rocsolver_dgetri_outofplace_batched
+#define rocsolver_cgetri_outofplace_batched g_rocsolver_cgetri_outofplace_batched
+#define rocsolver_zgetri_outofplace_batched g_rocsolver_zgetri_outofplace_batched
+#define rocsolver_sgetri_npvt_outofplace_batched g_rocsolver_sgetri_npvt_outofplace_batched
+#define rocsolver_dgetri_npvt_outofplace_batched g_rocsolver_dgetri_npvt_outofplace_batched
+#define rocsolver_cgetri_npvt_outofplace_batched g_rocsolver_cgetri_npvt_outofplace_batched
+#define rocsolver_zgetri_npvt_outofplace_batched g_rocsolver_zgetri_npvt_outofplace_batched
+
+#define rocsolver_sgeqrf g_rocsolver_sgeqrf
+#define rocsolver_dgeqrf g_rocsolver_dgeqrf
+#define rocsolver_cgeqrf g_rocsolver_cgeqrf
+#define rocsolver_zgeqrf g_rocsolver_zgeqrf
+#define rocsolver_sgeqrf_ptr_batched g_rocsolver_sgeqrf_ptr_batched
+#define rocsolver_dgeqrf_ptr_batched g_rocsolver_dgeqrf_ptr_batched
+#define rocsolver_cgeqrf_ptr_batched g_rocsolver_cgeqrf_ptr_batched
+#define rocsolver_zgeqrf_ptr_batched g_rocsolver_zgeqrf_ptr_batched
+#define rocsolver_sgeqrf_strided_batched g_rocsolver_sgeqrf_strided_batched
+#define rocsolver_dgeqrf_strided_batched g_rocsolver_dgeqrf_strided_batched
+#define rocsolver_cgeqrf_strided_batched g_rocsolver_cgeqrf_strided_batched
+#define rocsolver_zgeqrf_strided_batched g_rocsolver_zgeqrf_strided_batched
+
+#define rocsolver_sgels g_rocsolver_sgels
+#define rocsolver_dgels g_rocsolver_dgels
+#define rocsolver_cgels g_rocsolver_cgels
+#define rocsolver_zgels g_rocsolver_zgels
+#define rocsolver_sgels_batched g_rocsolver_sgels_batched
+#define rocsolver_dgels_batched g_rocsolver_dgels_batched
+#define rocsolver_cgels_batched g_rocsolver_cgels_batched
+#define rocsolver_zgels_batched g_rocsolver_zgels_batched
+#define rocsolver_sgels_strided_batched g_rocsolver_sgels_strided_batched
+#define rocsolver_dgels_strided_batched g_rocsolver_dgels_strided_batched
+#define rocsolver_cgels_strided_batched g_rocsolver_cgels_strided_batched
+#define rocsolver_zgels_strided_batched g_rocsolver_zgels_strided_batched
+
+#endif
+
+bool try_load_rocsolver();
diff --git a/library/src/amd_detail/hipblas.cpp b/library/src/amd_detail/hipblas.cpp
index ee05f2a..ee2b630 100644
--- a/library/src/amd_detail/hipblas.cpp
+++ b/library/src/amd_detail/hipblas.cpp
@@ -22,12 +22,10 @@
  * ************************************************************************ */
 #define ROCBLAS_NO_DEPRECATED_WARNINGS
 #include "hipblas.h"
+#include "dlopen/load_rocsolver.hpp"
 #include "exceptions.hpp"
 #include "limits.h"
 #include "rocblas/rocblas.h"
-#ifdef __HIP_PLATFORM_SOLVER__
-#include "rocsolver/rocsolver.h"
-#endif
 #include <algorithm>
 #include <functional>
 #include <hip/library_types.h>
@@ -363,6 +361,10 @@ try
     if(!handle)
         return HIPBLAS_STATUS_HANDLE_IS_NULLPTR;
 
+    // if we don't have solver at build-time, we will be using
+    // dlopen to load it at runtime here
+    try_load_rocsolver();
+
     // Create the rocBLAS handle
     return hipblasConvertStatus(rocblas_create_handle((rocblas_handle*)handle));
 }
@@ -46029,14 +46031,14 @@ catch(...)
     return hipblas_exception_to_status();
 }
 
-#ifdef __HIP_PLATFORM_SOLVER__
-
 //--------------------------------------------------------------------------------------
 //rocSOLVER functions
 //--------------------------------------------------------------------------------------
 
 // The following functions are not included in the public API and must be declared
 
+#ifdef BUILD_WITH_SOLVER
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -46077,11 +46079,18 @@ rocblas_status rocsolver_zgeqrf_ptr_batched(rocblas_handle                handle
 }
 #endif
 
+#endif
+
 // getrf
 hipblasStatus_t hipblasSgetrf(
     hipblasHandle_t handle, const int n, float* A, const int lda, int* ipiv, int* info)
 try
 {
+    // should only try to load on first invocation,
+    // otherwise return static result
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(
             rocsolver_sgetrf((rocblas_handle)handle, n, n, A, lda, ipiv, info)));
@@ -46098,6 +46107,9 @@ hipblasStatus_t hipblasDgetrf(
     hipblasHandle_t handle, const int n, double* A, const int lda, int* ipiv, int* info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(
             rocsolver_dgetrf((rocblas_handle)handle, n, n, A, lda, ipiv, info)));
@@ -46114,6 +46126,9 @@ hipblasStatus_t hipblasCgetrf(
     hipblasHandle_t handle, const int n, hipblasComplex* A, const int lda, int* ipiv, int* info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_cgetrf(
             (rocblas_handle)handle, n, n, (rocblas_float_complex*)A, lda, ipiv, info)));
@@ -46134,6 +46149,9 @@ hipblasStatus_t hipblasZgetrf(hipblasHandle_t       handle,
                               int*                  info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_zgetrf(
             (rocblas_handle)handle, n, n, (rocblas_double_complex*)A, lda, ipiv, info)));
@@ -46150,6 +46168,9 @@ hipblasStatus_t hipblasCgetrf_v2(
     hipblasHandle_t handle, const int n, hipComplex* A, const int lda, int* ipiv, int* info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_cgetrf(
             (rocblas_handle)handle, n, n, (rocblas_float_complex*)A, lda, ipiv, info)));
@@ -46166,6 +46187,9 @@ hipblasStatus_t hipblasZgetrf_v2(
     hipblasHandle_t handle, const int n, hipDoubleComplex* A, const int lda, int* ipiv, int* info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_zgetrf(
             (rocblas_handle)handle, n, n, (rocblas_double_complex*)A, lda, ipiv, info)));
@@ -46188,6 +46212,9 @@ hipblasStatus_t hipblasSgetrfBatched(hipblasHandle_t handle,
                                      const int       batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_sgetrf_batched(
             (rocblas_handle)handle, n, n, A, lda, ipiv, n, info, batch_count)));
@@ -46209,6 +46236,9 @@ hipblasStatus_t hipblasDgetrfBatched(hipblasHandle_t handle,
                                      const int       batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_dgetrf_batched(
             (rocblas_handle)handle, n, n, A, lda, ipiv, n, info, batch_count)));
@@ -46230,6 +46260,9 @@ hipblasStatus_t hipblasCgetrfBatched(hipblasHandle_t       handle,
                                      const int             batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_cgetrf_batched((rocblas_handle)handle,
@@ -46259,6 +46292,9 @@ hipblasStatus_t hipblasZgetrfBatched(hipblasHandle_t             handle,
                                      const int                   batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_zgetrf_batched((rocblas_handle)handle,
@@ -46288,6 +46324,9 @@ hipblasStatus_t hipblasCgetrfBatched_v2(hipblasHandle_t   handle,
                                         const int         batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_cgetrf_batched((rocblas_handle)handle,
@@ -46317,6 +46356,9 @@ hipblasStatus_t hipblasZgetrfBatched_v2(hipblasHandle_t         handle,
                                         const int               batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_zgetrf_batched((rocblas_handle)handle,
@@ -46349,6 +46391,9 @@ hipblasStatus_t hipblasSgetrfStridedBatched(hipblasHandle_t     handle,
                                             const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_sgetrf_strided_batched(
             (rocblas_handle)handle, n, n, A, lda, strideA, ipiv, strideP, info, batch_count)));
@@ -46372,6 +46417,9 @@ hipblasStatus_t hipblasDgetrfStridedBatched(hipblasHandle_t     handle,
                                             const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_dgetrf_strided_batched(
             (rocblas_handle)handle, n, n, A, lda, strideA, ipiv, strideP, info, batch_count)));
@@ -46395,6 +46443,9 @@ hipblasStatus_t hipblasCgetrfStridedBatched(hipblasHandle_t     handle,
                                             const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_cgetrf_strided_batched((rocblas_handle)handle,
@@ -46434,6 +46485,9 @@ hipblasStatus_t hipblasZgetrfStridedBatched(hipblasHandle_t       handle,
                                             const int             batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_zgetrf_strided_batched((rocblas_handle)handle,
@@ -46473,6 +46527,9 @@ hipblasStatus_t hipblasCgetrfStridedBatched_v2(hipblasHandle_t     handle,
                                                const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_cgetrf_strided_batched((rocblas_handle)handle,
@@ -46512,6 +46569,9 @@ hipblasStatus_t hipblasZgetrfStridedBatched_v2(hipblasHandle_t     handle,
                                                const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_zgetrf_strided_batched((rocblas_handle)handle,
@@ -46553,6 +46613,9 @@ hipblasStatus_t hipblasSgetrs(hipblasHandle_t          handle,
                               int*                     info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46594,6 +46657,9 @@ hipblasStatus_t hipblasDgetrs(hipblasHandle_t          handle,
                               int*                     info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46635,6 +46701,9 @@ hipblasStatus_t hipblasCgetrs(hipblasHandle_t          handle,
                               int*                     info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46684,6 +46753,9 @@ hipblasStatus_t hipblasZgetrs(hipblasHandle_t          handle,
                               int*                     info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46733,6 +46805,9 @@ hipblasStatus_t hipblasCgetrs_v2(hipblasHandle_t          handle,
                                  int*                     info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46782,6 +46857,9 @@ hipblasStatus_t hipblasZgetrs_v2(hipblasHandle_t          handle,
                                  int*                     info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46833,6 +46911,9 @@ hipblasStatus_t hipblasSgetrsBatched(hipblasHandle_t          handle,
                                      const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46887,6 +46968,9 @@ hipblasStatus_t hipblasDgetrsBatched(hipblasHandle_t          handle,
                                      const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46941,6 +47025,9 @@ hipblasStatus_t hipblasCgetrsBatched(hipblasHandle_t          handle,
                                      const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -46995,6 +47082,9 @@ hipblasStatus_t hipblasZgetrsBatched(hipblasHandle_t             handle,
                                      const int                   batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47049,6 +47139,9 @@ hipblasStatus_t hipblasCgetrsBatched_v2(hipblasHandle_t          handle,
                                         const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47103,6 +47196,9 @@ hipblasStatus_t hipblasZgetrsBatched_v2(hipblasHandle_t          handle,
                                         const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47161,6 +47257,9 @@ hipblasStatus_t hipblasSgetrsStridedBatched(hipblasHandle_t          handle,
                                             const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47220,6 +47319,9 @@ hipblasStatus_t hipblasDgetrsStridedBatched(hipblasHandle_t          handle,
                                             const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47279,6 +47381,9 @@ hipblasStatus_t hipblasCgetrsStridedBatched(hipblasHandle_t          handle,
                                             const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47338,6 +47443,9 @@ hipblasStatus_t hipblasZgetrsStridedBatched(hipblasHandle_t          handle,
                                             const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47397,6 +47505,9 @@ hipblasStatus_t hipblasCgetrsStridedBatched_v2(hipblasHandle_t          handle,
                                                const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47456,6 +47567,9 @@ hipblasStatus_t hipblasZgetrsStridedBatched_v2(hipblasHandle_t          handle,
                                                const int                batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T && trans != HIPBLAS_OP_C)
@@ -47511,6 +47625,9 @@ hipblasStatus_t hipblasSgetriBatched(hipblasHandle_t handle,
                                      const int       batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_sgetri_outofplace_batched(
             (rocblas_handle)handle, n, A, lda, ipiv, n, C, ldc, info, batch_count)));
@@ -47534,6 +47651,9 @@ hipblasStatus_t hipblasDgetriBatched(hipblasHandle_t handle,
                                      const int       batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(hipblasConvertStatus(rocsolver_dgetri_outofplace_batched(
             (rocblas_handle)handle, n, A, lda, ipiv, n, C, ldc, info, batch_count)));
@@ -47557,6 +47677,9 @@ hipblasStatus_t hipblasCgetriBatched(hipblasHandle_t       handle,
                                      const int             batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_cgetri_outofplace_batched((rocblas_handle)handle,
@@ -47596,6 +47719,9 @@ hipblasStatus_t hipblasZgetriBatched(hipblasHandle_t             handle,
                                      const int                   batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_zgetri_outofplace_batched((rocblas_handle)handle,
@@ -47635,6 +47761,9 @@ hipblasStatus_t hipblasCgetriBatched_v2(hipblasHandle_t   handle,
                                         const int         batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_cgetri_outofplace_batched((rocblas_handle)handle,
@@ -47674,6 +47803,9 @@ hipblasStatus_t hipblasZgetriBatched_v2(hipblasHandle_t         handle,
                                         const int               batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(ipiv != nullptr)
         return HIPBLAS_DEMAND_ALLOC(
             hipblasConvertStatus(rocsolver_zgetri_outofplace_batched((rocblas_handle)handle,
@@ -47712,6 +47844,10 @@ hipblasStatus_t hipblasSgeqrf(hipblasHandle_t handle,
                               int*            info)
 try
 {
+
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47744,6 +47880,9 @@ hipblasStatus_t hipblasDgeqrf(hipblasHandle_t handle,
                               int*            info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47776,6 +47915,9 @@ hipblasStatus_t hipblasCgeqrf(hipblasHandle_t handle,
                               int*            info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47813,6 +47955,9 @@ hipblasStatus_t hipblasZgeqrf(hipblasHandle_t       handle,
                               int*                  info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47850,6 +47995,9 @@ hipblasStatus_t hipblasCgeqrf_v2(hipblasHandle_t handle,
                                  int*            info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47887,6 +48035,9 @@ hipblasStatus_t hipblasZgeqrf_v2(hipblasHandle_t   handle,
                                  int*              info)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47926,6 +48077,9 @@ hipblasStatus_t hipblasSgeqrfBatched(hipblasHandle_t handle,
                                      const int       batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47961,6 +48115,9 @@ hipblasStatus_t hipblasDgeqrfBatched(hipblasHandle_t handle,
                                      const int       batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -47996,6 +48153,9 @@ hipblasStatus_t hipblasCgeqrfBatched(hipblasHandle_t       handle,
                                      const int             batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48037,6 +48197,9 @@ hipblasStatus_t hipblasZgeqrfBatched(hipblasHandle_t             handle,
                                      const int                   batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48078,6 +48241,9 @@ hipblasStatus_t hipblasCgeqrfBatched_v2(hipblasHandle_t   handle,
                                         const int         batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48119,6 +48285,9 @@ hipblasStatus_t hipblasZgeqrfBatched_v2(hipblasHandle_t         handle,
                                         const int               batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48163,6 +48332,9 @@ hipblasStatus_t hipblasSgeqrfStridedBatched(hipblasHandle_t     handle,
                                             const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48200,6 +48372,9 @@ hipblasStatus_t hipblasDgeqrfStridedBatched(hipblasHandle_t     handle,
                                             const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48237,6 +48412,9 @@ hipblasStatus_t hipblasCgeqrfStridedBatched(hipblasHandle_t     handle,
                                             const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48282,6 +48460,9 @@ hipblasStatus_t hipblasZgeqrfStridedBatched(hipblasHandle_t       handle,
                                             const int             batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48327,6 +48508,9 @@ hipblasStatus_t hipblasCgeqrfStridedBatched_v2(hipblasHandle_t     handle,
                                                const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48372,6 +48556,9 @@ hipblasStatus_t hipblasZgeqrfStridedBatched_v2(hipblasHandle_t     handle,
                                                const int           batch_count)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(m < 0)
@@ -48419,6 +48606,9 @@ hipblasStatus_t hipblasSgels(hipblasHandle_t    handle,
                              int*               deviceInfo)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T)
@@ -48471,6 +48661,9 @@ hipblasStatus_t hipblasDgels(hipblasHandle_t    handle,
                              int*               deviceInfo)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T)
@@ -48523,6 +48716,9 @@ hipblasStatus_t hipblasCgels(hipblasHandle_t    handle,
                              int*               deviceInfo)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -48575,6 +48771,9 @@ hipblasStatus_t hipblasZgels(hipblasHandle_t       handle,
                              int*                  deviceInfo)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -48627,6 +48826,9 @@ hipblasStatus_t hipblasCgels_v2(hipblasHandle_t    handle,
                                 int*               deviceInfo)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -48679,6 +48881,9 @@ hipblasStatus_t hipblasZgels_v2(hipblasHandle_t    handle,
                                 int*               deviceInfo)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -48733,6 +48938,9 @@ hipblasStatus_t hipblasSgelsBatched(hipblasHandle_t    handle,
                                     const int          batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T)
@@ -48790,6 +48998,9 @@ hipblasStatus_t hipblasDgelsBatched(hipblasHandle_t    handle,
                                     const int          batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T)
@@ -48847,6 +49058,9 @@ hipblasStatus_t hipblasCgelsBatched(hipblasHandle_t       handle,
                                     const int             batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -48904,6 +49118,9 @@ hipblasStatus_t hipblasZgelsBatched(hipblasHandle_t             handle,
                                     const int                   batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -48961,6 +49178,9 @@ hipblasStatus_t hipblasCgelsBatched_v2(hipblasHandle_t    handle,
                                        const int          batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -49018,6 +49238,9 @@ hipblasStatus_t hipblasZgelsBatched_v2(hipblasHandle_t         handle,
                                        const int               batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -49078,6 +49301,9 @@ hipblasStatus_t hipblasSgelsStridedBatched(hipblasHandle_t     handle,
                                            const int           batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T)
@@ -49139,6 +49365,9 @@ hipblasStatus_t hipblasDgelsStridedBatched(hipblasHandle_t     handle,
                                            const int           batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_T)
@@ -49200,6 +49429,9 @@ hipblasStatus_t hipblasCgelsStridedBatched(hipblasHandle_t     handle,
                                            const int           batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -49261,6 +49493,9 @@ hipblasStatus_t hipblasZgelsStridedBatched(hipblasHandle_t       handle,
                                            const int             batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -49322,6 +49557,9 @@ hipblasStatus_t hipblasCgelsStridedBatched_v2(hipblasHandle_t     handle,
                                               const int           batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -49383,6 +49621,9 @@ hipblasStatus_t hipblasZgelsStridedBatched_v2(hipblasHandle_t     handle,
                                               const int           batchCount)
 try
 {
+    if(!try_load_rocsolver())
+        return HIPBLAS_STATUS_NOT_SUPPORTED;
+
     if(info == NULL)
         return HIPBLAS_STATUS_INVALID_VALUE;
     else if(trans != HIPBLAS_OP_N && trans != HIPBLAS_OP_C)
@@ -49428,8 +49669,6 @@ catch(...)
     return hipblas_exception_to_status();
 }
 
-#endif
-
 // gemm
 hipblasStatus_t hipblasHgemm(hipblasHandle_t    handle,
                              hipblasOperation_t transa,
diff --git a/library/src/nvidia_detail/hipblas.cpp b/library/src/nvidia_detail/hipblas.cpp
index 319c15d..e5c9b1d 100644
--- a/library/src/nvidia_detail/hipblas.cpp
+++ b/library/src/nvidia_detail/hipblas.cpp
@@ -31819,8 +31819,6 @@ hipblasStatus_t hipblasZdgmmStridedBatched_v2_64(hipblasHandle_t         handle,
     return HIPBLAS_STATUS_NOT_SUPPORTED;
 }
 
-#ifdef __HIP_PLATFORM_SOLVER__
-
 // getrf
 hipblasStatus_t hipblasSgetrf(
     hipblasHandle_t handle, const int n, float* A, const int lda, int* ipiv, int* info)
@@ -33235,8 +33233,6 @@ hipblasStatus_t hipblasZgelsStridedBatched_v2(hipblasHandle_t     handle,
     return HIPBLAS_STATUS_NOT_SUPPORTED;
 }
 
-#endif
-
 // gemm
 hipblasStatus_t hipblasHgemm(hipblasHandle_t    handle,
                              hipblasOperation_t transa,