---
title: KmlScaissCsiInitWithoutMat?I
description: "C Interface："
url: https://www.hikunpeng.com/document/detail/zh/kunpengaccel/math-lib/devg-kml/kunpengaccel_kml_0887.html
sourcePath: /source/zh/kunpengaccel/math-lib/devg-kml/kunpengaccel_kml_0887.html
indexId: 73b9eac7e59826adb482ce00c488efd4e14c65e0975593bbc1e4459129237e4268
---
# KmlScaissCsiInitWithoutMat?I

#### 接口定义

C Interface：

int KmlScaissCsiInitWithoutMatSI(KmlScasolverTask **handle, int nstripes, const int *stripeWidth, MPI_Comm comm);


int KmlScaissCsiInitWithoutMatDI(KmlScasolverTask **handle, int nstripes, const int *stripeWidth, MPI_Comm comm);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| handle | KmlScasolverTask \*\* | 求解器句柄，handle不可为空指针。 | 输入/输出 |
| nstripes | int | nstripes为存储在当前MPI进程中的矩阵数，目前只能取1。 | 输入 |
| stripeWidth | int \* | stripeWidth为当前MPI进程中的矩阵行数。该变量的生命周期与handle相同。 | 输入 |
| comm | MPI\_Comm | 为MPI进程通信域。 | 输入 |


#### 返回值

| 返回值 | 类型 | 描述 |
| --- | --- | --- |
| KMLSS\_NO\_ERROR | int | 正常执行。 |
| KMLSS\_NULL\_ARGUMENT | int | handle，stripeWidth中存在空参数。 |
| KMLSS\_NONZERO\_INDEXING | int | 参数ia的首元素不是0。 |
| KMLSS\_NOT\_IMPLEMENTED | int | 参数nstripes不等于1。 |
| KMLSS\_NO\_MEMORY | int | 内存不足。 |


#### 依赖

#include "kml_scaiss.h"

示例代码请参见示例。
