Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Internal consistency check failure when using DSS

Tianyu_D_
ビギナー
2,920件の閲覧回数

Hi there,

I am working on a project to use DSS to solve large sparse linear equations. However I met with internal consistency check failure. I could see no problem with my codes. Could anyone help me to figure the problem out? Thank you so much. The attached is my project file.

316170

0 件の賞賛
1 解決策
Gennady_F_Intel
モデレーター
2,920件の閲覧回数

this is the problem with the test.

From MKL documentation:  DSS_REORDER:...

If opt contains the option MKL_DSS_MY_ORDER, then you must supply a permutation vector in the array perm. In this case, the array perm is of length nRows, where nRows is the number of rows in the matrix as defined by the previous call to dss_define_structure.

If opt contains the option MKL_DSS_GET_ORDER, then the permutation vector computed during the dss_reorder call is copied to the array perm. In this case you must allocate the array perm beforehand. The permutation vector is computed in the same way as if the option MKL_DSS_AUTO_ORDER is set.....

finally, making the following changes, should help:

!          error = dss_reorder( handle, MKL_DSS_GET_ORDER, Idum)
           error = dss_reorder( handle, MKL_DSS_AUTO_ORDER, Idum)

regards, Gennady

元の投稿で解決策を見る

7 返答(返信)
Steven_L_Intel1
従業員
2,920件の閲覧回数

For some reason, your attachment did not make it through. Is this an MKL solver you are calling?

Tianyu_D_
ビギナー
2,920件の閲覧回数

Yes. I am calling mkl_dss solver.

Here is my project file.

316430

Tianyu_D_
ビギナー
2,920件の閲覧回数

Here is my project file.

Steven_L_Intel1
従業員
2,920件の閲覧回数

Ok - I have moved this to the MKL forum.

Gennady_F_Intel
モデレーター
2,920件の閲覧回数

ok, we will look into the problem.

Gennady_F_Intel
モデレーター
2,921件の閲覧回数

this is the problem with the test.

From MKL documentation:  DSS_REORDER:...

If opt contains the option MKL_DSS_MY_ORDER, then you must supply a permutation vector in the array perm. In this case, the array perm is of length nRows, where nRows is the number of rows in the matrix as defined by the previous call to dss_define_structure.

If opt contains the option MKL_DSS_GET_ORDER, then the permutation vector computed during the dss_reorder call is copied to the array perm. In this case you must allocate the array perm beforehand. The permutation vector is computed in the same way as if the option MKL_DSS_AUTO_ORDER is set.....

finally, making the following changes, should help:

!          error = dss_reorder( handle, MKL_DSS_GET_ORDER, Idum)
           error = dss_reorder( handle, MKL_DSS_AUTO_ORDER, Idum)

regards, Gennady

Tianyu_D_
ビギナー
2,920件の閲覧回数

Thank you so much!

Problem solved.

返信