CuSolverRf sample sorting error - cuda
I'm having trouble with the CUSolverRf sample to solve a sparse 196530 x 196530 with 2530239 nnz matrix.
I've not tried with B vector values yet (a problem for another time) and I already have an error:
Error (sorting of the column indecis check failed): (csrColInd1=2)>= (csrColInd[2]=2)
Error (sorting of the column indecis check failed): (csrColInd[3]=3)
= (csrColInd[4]=3)
Error (sorting of the column indecis check failed):
(csrColInd[5]=2251) >= (csrColInd[6]=2251)
Error (sorting of the column indecis check failed):
(csrColInd[7]=2252) >= (csrColInd[8]=2252)
Error (sorting of the column indecis check failed):
(csrColInd[9]=4501) >= (csrColInd[10]=4501)
I have attempted to Isolate the problem and to my analysis have narrowed down the error source to "qsort.c" routine which sorts the symmetrized pattern.
Would anyone please advise on what can I do to overcome the error?
And side note: can I and how do I add in the B values later? Thank you.
Raw data:
196530 196530 2530239
1 1 -26860.49266
2 1 11773.49315
3 1 557.7137436
2251 1 11734.57775
2252 1 2237.629363
4501 1 557.0786545
1 2 11714.30627
2 2 -37958.69476
....
Analysed the program line by line and found that the cause of the error was due to the first line of the data file:
%%MatrixMarket matrix coordinate real symmetric
I had assumed the "%%" in front of the statement was for the computer to ignore the line.
The matrix that I provided was not symmetric which caused the above error. Program works when the the word "symmetric" was replaced with "general"
Hope this lesson helps others if they meet the same problem.
Related
SSIS derived column error (cast type)
I am trying to sum 2 columns (adjustment due day and expiration day): DATEADD("dd",(DT_I4)AdjustmentDueDayCode,ExpirationDate) I keep getting the following error message: An error occurred while attempting to perform a type cast SSIS Error Code `DTS_E_INDUCEDTRANSFORMFAILUREONERROR*` I thought it could be because of nulls so wrote the following: (DT_I4)AdjustmentDueDayCode > 0 ? (DATEADD("dd", (DT_I4)AdjustmentDueDayCode,ExpirationDate) : "null" But still getting the same error, any recommendations?
AdjustmentDueDaycode needs to become type BIGINT. IE) DATEADD("dd", CONVERT(BIGINT, (DT_I4)AdjustmentDueDaycode),ExpirationDate)
SQL Error "Column count doesn't match value count at row" - yet I've checked that the number of columns equals number of values
I've been trying to set up a very simple SQL table that links to a bigger table - that table works fine but the second table constantly throws up the classic "column count doesn't match value count at row" error. CREATE TABLE NonHeadlessDistro ( Headless INT, Proprietary INT, EaseInstall INT, SimilarTo VARCHAR(28), Gnome INT, KDE INT, LXDE INT, XFCE INT, MATE INT, Cinna INT ); INSERT INTO NonHeadlessDistro (Headless, Proprietary, EaseInstall, SimilarTo, Gnome, KDE, LXDE, XFCE, MATE, Cinna) VALUES ('0','1','2','macOS','1','1','1','1','1','0'), ('0','4','4','Linux','1','1','1','1','0','0'), ('0','1','1','Windows','0','1','0','1','1','1'), ('0','2','2','Windows','0','0','1','1','0','0'), ('0','1','5','Linux','1','0','0','0','0','0'), ('0','1','4','Linux','1','0','0','0','0','0'), ('0','2','2','Linux','1','1','1','1','1','1'), ('0','3','5','Linux','1','1','1','1','1','1'), ('0','2','2','Linux','0','1','0','0','1','0'), ('0','1','2','Linux','0','0','1','0','0','0'), ('0','1','4','Linux' '1','1','0','0','0','0'), ('0','3','5','Linux','1','1','1','1','1','1'), ('0','2','3','Linux','0','0','0','0','1','0'), ('0','3','5','Linux','1','1','1','1','1','1'), ('0','1','4','Linux','1','1','0','0','0','0'), ('0','5','2','Linux','1','0','1','0','1','0'), ('0','5','5','Linux','0','0','1','0','1','0'), ('0','5','4','Linux','1','0','0','0','0','0'), ('0','5','5','Linux','1','0','1','1','0','0'), ('0','2','3','Linux','1','1','1','0','0','0'), ('0','2','3','Linux','1','1','0','1','1','1'), ('0','2','3','Linux','0','0','1','0','0','0'), ('0','2','3','Linux','1','1','1','1','1','0'), ('0','2','1','Linux','1','1','1','1','1','1'), ('0','2','1','Linux','1','1','0','1','1','0'); SELECT linux_distro FROM linux_distro LEFT JOIN NonHeadlessDistro ON Headless WHERE Headless ="0"; The exact error message appears as: 1 errors were found during analysis 1. 10 values were expected, but found 9. (near "(" at position 596) MySQL said: #1136 - Column count doesn't match count at row 11 Using online SQL error checkers, the problem appears to be within the INSERT INTO line, but I'm at a complete loss as to why one of the columns hasn't been acknowledged, as I've checked that the number of columns is equal to the number of VALUES. Reading up on other solutions for the error, the problem usually appears as a result of misplaced quotation marks, or missing values/columns, but for the life of me I can't see what is wrong with my SQL. It is most likely a incredibly simple mistake given that my initial errors with the first table were solved with adding a missing semi-colon. Any help would be greatly appreciated. EDIT: I'm blind, I couldn't see my missing comma on line 11. However, I've opened up another can of worms - before MySQL was expecting 10 values and only found 9 values, but with the edit it now expects 11 values and it can only find 10. It now also affects all 24 lines from INSERT INTO NonHeadlessDistro (Headless, Proprietary, EaseInstall, SimilarTo, Gnome, KDE, LXDE, XFCE, MATE, Cinna) to the final ('0','2','1','Linux','1','1','0','1','1','0'); line, so I have the same error replicated 24 times. I'm guessing that there's probably a pretty fundamental problem here: MySQL said: #1136 - Column count doesn't match value count at row 1
This line ('0','1','4','Linux' '1','1','0','0','0','0'), has a comma missing
Trying to fix "tMySQL query error: Duplicate entry" For a garrysmod server
I'm new to this website, and I'm not sure if I'm supposed to ask questions about mysql things in a game server. Anyways, I'm trying to fix this error here, and I was wondering if there's anything I can do to figure out, or solve where the issue is occurring. Trace: 1: Line 32 "Trace" lua/includes/extensions/debug.lua 2: Line 33 "nil" gamemodes/catalystrp/gamemode/data.lua 3 C function 4: Line 84 "nil" lua/includes/modules/hook.lua tMySQL query error: Duplicate entry 'STEAM_0:0:53698800' for key 'PRIMARY'Query: INSERT INTO metrorp_wallets (`steam`, `rpname`) VALUES('STEAM_0:0:53698800', 'T
what this error means is that you are trying to insert a row to the table that conflicts with row already in the table (meaning- there's already a row in the table with the same primary key). How to deal with this case is really a matter of what you are trying to do. I can think of three ways to go here: if this case is illegal, than I guess you should not change the query, but handle the error (exception, log, whatever) if you want to replace the data in the table with the new row, use REPLACE INTO instead of INSERT INTO in your query. if you want to keep the data that's already there, use INSERT IGNORE in your query.
Excel to SQL - CEILING and Error code 1582
I have the following excel formula: CEILING(F9*6763.85873627538/((F9-1)*400+6763.85873627538),1) Where F9 is named PROJECTED_QUANTITY in my table sample_size_by_service_id I have the following SQL query written out: select PROJECTED_QUANTITY, ceiling((PROJECTED_QUANTITY*6763.858736275380)/((PROJECTED_QUANTITY - 1)*400+6763.85873627538),1) FROM sample_size_by_service_id and I'm getting the following error message: Error Code: 1582. Incorrect parameter count in the call to native function 'ceiling' 0.047 sec Not sure what I'm doing wrong here - I'm a novice to SQL and my hours of googling have had me make sure that my PROJECTED_QUANTITY column is an INTEGER type (it is). I suspected that I am badly badgering the combined operators, but I'm not sure how else to write it. Appreciate any insight! Thanks!
At the suggestion of user3964075, I removed the second parameter as the mysql syntax for CEILING is CEILING(number), not CEILING(number, significance) as it is in excel. Removing the second parameter resolved the issue - I am no longer getting error code 1582 and am achieving the desired results.
what does "out of range" mean?
I have checked these statements with mysql and no error will happen and also the out put will be 0 rows BUT my friend checked it and he found an error for SELECT becaouse it is out of range !! IS he correct? thanks CREATE TABLE T1(A INTEGER NULL); SELECT * FROM T1;
There is nothing wrong with those two lines. "Out of range" normally means that some value is outside the expected range of valid values. For example if you have an array of length 2, trying to access position number 10 in that array could lead to an "array index out of range" error (depending on your programming language).
I don't immediately see anything wrong with it - but I haven't got an install of mysql handy at the moment to test with.