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
|
/*
* Copyright 2015 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO LICENSEE:
*
* This source code and/or documentation ("Licensed Deliverables") are
* subject to NVIDIA intellectual property rights under U.S. and
* international Copyright laws.
*
* These Licensed Deliverables contained herein is PROPRIETARY and
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
* conditions of a form of NVIDIA software license agreement by and
* between NVIDIA and Licensee ("License Agreement") or electronically
* accepted by Licensee. Notwithstanding any terms or conditions to
* the contrary in the License Agreement, reproduction or disclosure
* of the Licensed Deliverables to any third party without the express
* written consent of NVIDIA is prohibited.
*
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
* OF THESE LICENSED DELIVERABLES.
*
* U.S. Government End Users. These Licensed Deliverables are a
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
* 1995), consisting of "commercial computer software" and "commercial
* computer software documentation" as such terms are used in 48
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
* U.S. Government End Users acquire the Licensed Deliverables with
* only those rights set forth herein.
*
* Any use of the Licensed Deliverables in individual and commercial
* software must include, in the user documentation and internal
* comments to the code, the above Disclaimer and U.S. Government End
* Users Notice.
*/
#if !defined(CUSOLVERSP_LOWLEVEL_PREVIEW_H_)
#define CUSOLVERSP_LOWLEVEL_PREVIEW_H_
#include "cusolverSp.h"
#if defined(__cplusplus)
extern "C" {
#endif /* __cplusplus */
struct csrluInfoHost;
typedef struct csrluInfoHost *csrluInfoHost_t;
struct csrqrInfoHost;
typedef struct csrqrInfoHost *csrqrInfoHost_t;
struct csrcholInfoHost;
typedef struct csrcholInfoHost *csrcholInfoHost_t;
struct csrcholInfo;
typedef struct csrcholInfo *csrcholInfo_t;
/*
* Low level API for CPU LU
*
*/
cusolverStatus_t CUSOLVERAPI
cusolverSpCreateCsrluInfoHost(csrluInfoHost_t *info);
cusolverStatus_t CUSOLVERAPI
cusolverSpDestroyCsrluInfoHost(csrluInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpXcsrluAnalysisHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrluBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrluFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
float pivot_threshold,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
double pivot_threshold,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
float pivot_threshold,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrluInfoHost_t info,
double pivot_threshold,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrluZeroPivotHost(
cusolverSpHandle_t handle,
csrluInfoHost_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluZeroPivotHost(
cusolverSpHandle_t handle,
csrluInfoHost_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluZeroPivotHost(
cusolverSpHandle_t handle,
csrluInfoHost_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluZeroPivotHost(
cusolverSpHandle_t handle,
csrluInfoHost_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrluSolveHost(
cusolverSpHandle_t handle,
int n,
const float * b,
float * x,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluSolveHost(
cusolverSpHandle_t handle,
int n,
const double * b,
double * x,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluSolveHost(
cusolverSpHandle_t handle,
int n,
const cuComplex * b,
cuComplex * x,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluSolveHost(
cusolverSpHandle_t handle,
int n,
const cuDoubleComplex *b,
cuDoubleComplex * x,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpXcsrluNnzHost(
cusolverSpHandle_t handle,
int * nnzLRef,
int * nnzURef,
csrluInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrluExtractHost(
cusolverSpHandle_t handle,
int * P,
int * Q,
const cusparseMatDescr_t descrL,
float * csrValL,
int * csrRowPtrL,
int * csrColIndL,
const cusparseMatDescr_t descrU,
float * csrValU,
int * csrRowPtrU,
int * csrColIndU,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrluExtractHost(
cusolverSpHandle_t handle,
int * P,
int * Q,
const cusparseMatDescr_t descrL,
double * csrValL,
int * csrRowPtrL,
int * csrColIndL,
const cusparseMatDescr_t descrU,
double * csrValU,
int * csrRowPtrU,
int * csrColIndU,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrluExtractHost(
cusolverSpHandle_t handle,
int * P,
int * Q,
const cusparseMatDescr_t descrL,
cuComplex * csrValL,
int * csrRowPtrL,
int * csrColIndL,
const cusparseMatDescr_t descrU,
cuComplex * csrValU,
int * csrRowPtrU,
int * csrColIndU,
csrluInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrluExtractHost(
cusolverSpHandle_t handle,
int * P,
int * Q,
const cusparseMatDescr_t descrL,
cuDoubleComplex * csrValL,
int * csrRowPtrL,
int * csrColIndL,
const cusparseMatDescr_t descrU,
cuDoubleComplex * csrValU,
int * csrRowPtrU,
int * csrColIndU,
csrluInfoHost_t info,
void * pBuffer);
/*
* Low level API for CPU QR
*
*/
cusolverStatus_t CUSOLVERAPI
cusolverSpCreateCsrqrInfoHost(csrqrInfoHost_t *info);
cusolverStatus_t CUSOLVERAPI
cusolverSpDestroyCsrqrInfoHost(csrqrInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpXcsrqrAnalysisHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrBufferInfoHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrBufferInfoHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrBufferInfoHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrBufferInfoHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSetupHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
float mu,
csrqrInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSetupHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
double mu,
csrqrInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSetupHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
cuComplex mu,
csrqrInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSetupHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
cuDoubleComplex mu,
csrqrInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrFactorHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
float * b,
float * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrFactorHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
double * b,
double * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrFactorHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
cuComplex * b,
cuComplex * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrFactorHost(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
cuDoubleComplex * b,
cuDoubleComplex * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrZeroPivotHost(
cusolverSpHandle_t handle,
csrqrInfoHost_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrZeroPivotHost(
cusolverSpHandle_t handle,
csrqrInfoHost_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrZeroPivotHost(
cusolverSpHandle_t handle,
csrqrInfoHost_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrZeroPivotHost(
cusolverSpHandle_t handle,
csrqrInfoHost_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSolveHost(
cusolverSpHandle_t handle,
int m,
int n,
float * b,
float * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSolveHost(
cusolverSpHandle_t handle,
int m,
int n,
double * b,
double * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSolveHost(
cusolverSpHandle_t handle,
int m,
int n,
cuComplex * b,
cuComplex * x,
csrqrInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSolveHost(
cusolverSpHandle_t handle,
int m,
int n,
cuDoubleComplex * b,
cuDoubleComplex * x,
csrqrInfoHost_t info,
void * pBuffer);
/*
* Low level API for GPU QR
*
*/
cusolverStatus_t CUSOLVERAPI cusolverSpXcsrqrAnalysis(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrBufferInfo(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrBufferInfo(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrBufferInfo(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrBufferInfo(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrqrInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSetup(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
float mu,
csrqrInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSetup(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
double mu,
csrqrInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSetup(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
cuComplex mu,
csrqrInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSetup(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
cuDoubleComplex mu,
csrqrInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrFactor(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
float * b,
float * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrFactor(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
double * b,
double * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrFactor(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
cuComplex * b,
cuComplex * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrFactor(
cusolverSpHandle_t handle,
int m,
int n,
int nnzA,
cuDoubleComplex * b,
cuDoubleComplex * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrZeroPivot(
cusolverSpHandle_t handle,
csrqrInfo_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrZeroPivot(
cusolverSpHandle_t handle,
csrqrInfo_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrZeroPivot(
cusolverSpHandle_t handle,
csrqrInfo_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrZeroPivot(
cusolverSpHandle_t handle,
csrqrInfo_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrqrSolve(
cusolverSpHandle_t handle,
int m,
int n,
float * b,
float * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrqrSolve(
cusolverSpHandle_t handle,
int m,
int n,
double * b,
double * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrqrSolve(
cusolverSpHandle_t handle,
int m,
int n,
cuComplex * b,
cuComplex * x,
csrqrInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrqrSolve(
cusolverSpHandle_t handle,
int m,
int n,
cuDoubleComplex * b,
cuDoubleComplex * x,
csrqrInfo_t info,
void * pBuffer);
/*
* Low level API for CPU Cholesky
*
*/
cusolverStatus_t CUSOLVERAPI
cusolverSpCreateCsrcholInfoHost(csrcholInfoHost_t *info);
cusolverStatus_t CUSOLVERAPI
cusolverSpDestroyCsrcholInfoHost(csrcholInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpXcsrcholAnalysisHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholBufferInfoHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholFactorHost(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholZeroPivotHost(
cusolverSpHandle_t handle,
csrcholInfoHost_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholZeroPivotHost(
cusolverSpHandle_t handle,
csrcholInfoHost_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholZeroPivotHost(
cusolverSpHandle_t handle,
csrcholInfoHost_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholZeroPivotHost(
cusolverSpHandle_t handle,
csrcholInfoHost_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholSolveHost(
cusolverSpHandle_t handle,
int n,
const float * b,
float * x,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholSolveHost(
cusolverSpHandle_t handle,
int n,
const double * b,
double * x,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholSolveHost(
cusolverSpHandle_t handle,
int n,
const cuComplex * b,
cuComplex * x,
csrcholInfoHost_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholSolveHost(
cusolverSpHandle_t handle,
int n,
const cuDoubleComplex *b,
cuDoubleComplex * x,
csrcholInfoHost_t info,
void * pBuffer);
/*
* Low level API for GPU Cholesky
*
*/
cusolverStatus_t CUSOLVERAPI cusolverSpCreateCsrcholInfo(csrcholInfo_t *info);
cusolverStatus_t CUSOLVERAPI cusolverSpDestroyCsrcholInfo(csrcholInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpXcsrcholAnalysis(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholBufferInfo(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholBufferInfo(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholBufferInfo(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholBufferInfo(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
size_t * internalDataInBytes,
size_t * workspaceInBytes);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholFactor(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const float * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholFactor(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const double * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholFactor(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholFactor(
cusolverSpHandle_t handle,
int n,
int nnzA,
const cusparseMatDescr_t descrA,
const cuDoubleComplex * csrValA,
const int * csrRowPtrA,
const int * csrColIndA,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholZeroPivot(
cusolverSpHandle_t handle,
csrcholInfo_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholZeroPivot(
cusolverSpHandle_t handle,
csrcholInfo_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholZeroPivot(
cusolverSpHandle_t handle,
csrcholInfo_t info,
float tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholZeroPivot(
cusolverSpHandle_t handle,
csrcholInfo_t info,
double tol,
int * position);
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholSolve(
cusolverSpHandle_t handle,
int n,
const float * b,
float * x,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholSolve(
cusolverSpHandle_t handle,
int n,
const double * b,
double * x,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholSolve(
cusolverSpHandle_t handle,
int n,
const cuComplex * b,
cuComplex * x,
csrcholInfo_t info,
void * pBuffer);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholSolve(
cusolverSpHandle_t handle,
int n,
const cuDoubleComplex *b,
cuDoubleComplex * x,
csrcholInfo_t info,
void * pBuffer);
/*
* "diag" is a device array of size N.
* cusolverSp<t>csrcholDiag returns diag(L) to "diag" where A(P,P) = L*L**T
* "diag" can estimate det(A) because det(A(P,P)) = det(A) = det(L)^2 if A =
* L*L**T.
*
* cusolverSp<t>csrcholDiag must be called after cusolverSp<t>csrcholFactor.
* otherwise "diag" is wrong.
*/
cusolverStatus_t CUSOLVERAPI cusolverSpScsrcholDiag(
cusolverSpHandle_t handle,
csrcholInfo_t info,
float * diag);
cusolverStatus_t CUSOLVERAPI cusolverSpDcsrcholDiag(
cusolverSpHandle_t handle,
csrcholInfo_t info,
double * diag);
cusolverStatus_t CUSOLVERAPI cusolverSpCcsrcholDiag(
cusolverSpHandle_t handle,
csrcholInfo_t info,
float * diag);
cusolverStatus_t CUSOLVERAPI cusolverSpZcsrcholDiag(
cusolverSpHandle_t handle,
csrcholInfo_t info,
double * diag);
#if defined(__cplusplus)
}
#endif /* __cplusplus */
#endif // CUSOLVERSP_LOWLEVEL_PREVIEW_H_
|