JuliaGPU / oneAPI.jl

Julia support for the oneAPI programming toolkit.
https://juliagpu.org/oneapi/
Other
179 stars 21 forks source link

MKL test failures on PVC #428

Open maleadt opened 4 months ago

maleadt commented 4 months ago

PVC support is now working, but there remains a couple of MKL failures:

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:100
  Expression: testf(BLAS.asum, rand(T, m))

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1181
  Expression: alpha * wrapper(opa(A)) * x + beta * y ≈ collect(dy)
   Evaluated: [0.21393280494229644, 0.4890119665506336, 0.6021478856969859, 0.4553621453025656, 0.7206495017187722, 0.8564667114078006, 0.7239962947333933, 0.7082277322803184, 0.4344775003802308, 0.21903007377268208] ≈ [0.21393280494229644, 0.48901196655063367, 0.602147885696986, 0.4553621453025656, 0.7206495017187722, 0.8564667114078006, 0.7239962947333933, 0.7082277322803184, 0.4344775003802308, 0.2225399483644092]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1341
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: Float32[0.8643166 0.22459453 … 0.4961018 0.47476423; 0.71356606 0.7424816 … -0.12443602 0.0778476; … ; 0.331417 0.64520794 … -0.8961076 0.09229201; 0.42179406 0.80861473 … -0.13776015 0.19902126] ≈ Float32[0.8643166 0.22459453 … 0.4961018 0.47476423; 0.4248523 0.5125523 … 0.8356215 0.6994161; … ; 0.091814876 0.34981763 … 0.19736177 0.5521371; 0.36456358 0.6951142 … 0.5836946 0.39249903]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1341
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: Float32[0.93469673 0.10058665 … 0.21828699 0.6119471; 0.6199101 0.892272 … 0.5151422 0.46199232; … ; 0.4906263 0.5263591 … 0.9138907 -0.8022982; 0.113717794 0.9023338 … -0.8433041 -0.99191463] ≈ Float32[0.57942796 0.9546267 … 0.6504605 0.84134454; 0.10629165 0.8165657 … 0.08475608 0.47742844; … ; 0.6429156 0.00089615583 … 0.95236254 0.021185637; 0.54997504 0.2559845 … 0.3182401 0.38121367]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1348
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: Float32[-4.306631 1.6053035 … 0.39655373 7.014916; -0.54482794 0.82981247 … 0.27541152 0.7121314; … ; -0.7486643 1.1969597 … -0.7695002 0.51749295; -3.125203 0.46090764 … 1.5195539 5.0245886] ≈ Float32[4.2119493 2.3424242 … 7.9514194 -5.369034; 3.0800579 5.3841925 … 13.441856 -8.4485655; … ; 2.7721384 -0.8788915 … 9.227198 -7.1276317; -0.047681745 0.499774 … -1.4871236 2.547777]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1348
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: Float32[-1.5089425 0.66331136 … 0.47258642 -2.048519; 0.069055796 0.8107233 … 0.2153266 0.15109718; … ; 0.95267916 -0.8850489 … 0.03335154 0.31325284; 0.90547913 -1.0081513 … -0.7486004 0.74687356] ≈ Float32[21.826092 8583.816 … 938.29175 -6855.148; -5.5916843 -8942.677 … -1007.01843 7183.4604; … ; 0.48656914 -0.51334375 … 1.0685909 -0.05835402; 0.79709554 -0.025630323 … -0.83480775 2.623201]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1341
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: ComplexF32[0.8193094f0 + 0.9915558f0im 0.22415549f0 + 0.8745151f0im … 0.36798853f0 + 0.7690666f0im 0.574554f0 + 0.4384194f0im; 0.42611092f0 - 0.17672206f0im 0.5786029f0 + 0.42071125f0im … 0.42206866f0 + 0.65955585f0im 0.5057205f0 + 0.10681928f0im; … ; 0.22326964f0 - 0.051379047f0im 0.5837287f0 - 0.5421264f0im … -0.39158374f0 + 0.470563f0im -0.14606921f0 + 0.18037334f0im; 0.613809f0 + 0.04767108f0im 0.6478969f0 - 0.16731729f0im … -0.794454f0 - 0.6986701f0im 0.049026743f0 - 0.16524836f0im] ≈ ComplexF32[0.75081694f0 + 0.6822138f0im 0.9176689f0 + 0.43796307f0im … 0.03943515f0 + 0.9202845f0im 0.5048365f0 + 0.3660397f0im; 0.06736857f0 + 0.21720457f0im 0.46248168f0 + 0.5697005f0im … 0.78943723f0 + 0.49719995f0im 0.03365606f0 + 0.01774311f0im; … ; 0.5243465f0 + 0.27772272f0im 0.8286641f0 + 0.75373846f0im … 0.7147836f0 + 0.92223185f0im 0.8280226f0 + 0.1920982f0im; 0.23387212f0 + 0.17928898f0im 0.6608047f0 + 0.11564112f0im … 0.05070567f0 + 0.93926316f0im 0.08835667f0 + 0.2928164f0im]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1348
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: ComplexF32[-2.9410484f0 - 0.55926335f0im 0.32801047f0 + 2.1425796f0im … -0.01363641f0 + 0.6772958f0im 1.3583312f0 - 2.0011206f0im; 7.981861f0 - 0.76909286f0im -2.1469796f0 - 5.1420803f0im … 0.12741733f0 - 1.0278301f0im -2.5416842f0 + 6.6931252f0im; … ; -3.219853f0 + 1.456277f0im 1.7829741f0 + 1.8343555f0im … 0.042154968f0 + 0.90707445f0im -0.09688097f0 - 3.3808522f0im; 7.411132f0 - 0.46154413f0im -1.7686275f0 - 4.508707f0im … 0.13297522f0 - 0.3395748f0im -2.5749896f0 + 5.571597f0im] ≈ ComplexF32[20.108557f0 - 71.73824f0im 23.968689f0 + 108.699036f0im … 9.249449f0 - 38.56935f0im 41.062897f0 + 11.239802f0im; -160.53131f0 + 96.22447f0im 128.96844f0 - 296.0246f0im … -83.73578f0 + 61.415592f0im -67.50151f0 - 88.233315f0im; … ; 3.5333524f0 - 1.6732208f0im -1.8024123f0 + 6.674567f0im … 2.5478716f0 - 1.6405115f0im 0.90648395f0 + 2.2025886f0im; -4.2668138f0 - 0.68066907f0im 8.43313f0 - 2.3487933f0im … -2.9878864f0 - 0.7284224f0im 0.9445027f0 - 3.1301076f0im]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1341
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: [0.9027446437904484 0.14461241288499804 … 0.7626061765146223 0.015966336421452287; 0.16934768137567402 0.8254584818182745 … 0.5773863982745697 0.7339137315446727; … ; 0.8176961564283519 0.18540364164226722 … 1.4213525745662192 0.5091388336646387; 0.2487908222273225 0.471808447272438 … 0.024449100375995476 -0.9123502622224151] ≈ [0.42485234883248724 0.6419647907879534 … 0.09562018483508317 0.9086987616140287; 0.6290147859373573 0.18767810599315693 … 0.13678596845597835 0.2036793676438714; … ; 0.5534894619701431 0.49985069212026867 … 0.8903352263246203 0.5727738884825645; 0.6951142445555463 0.09479671891251229 … 0.2551008774799456 0.11708078123454446]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1341
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: [0.9546267305384332 0.9005523208390797 … 0.582774516225307 0.022688049892374385; 0.09067424811629758 0.7793788101598477 … 0.4582909649420247 0.18148361811105337; … ; 0.2783005901551026 0.9114282852514751 … 0.6466211652439995 0.5089673503603986; 0.4370045895960748 0.1279086985905934 … 0.7970342141133632 -0.24331405817935658] ≈ [0.10629167677355644 0.4951730356383993 … 0.29721515087490835 0.7583792897560203; 0.7283018013850674 0.498896821974835 … 0.1511844389807434 0.9553169487914577; … ; 0.10058670479239662 0.35901564386380846 … 0.16952779318790978 0.08487500054139063; 0.2559845377693176 0.9923613144802934 … 0.7606678226407574 0.17999644516529834]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1348
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: [-0.9546768411268203 -0.1770846395183583 … 0.7289602932812734 -1.6458286754313651; 1.179405005607047 -0.32381049905926396 … 1.1386859658436719 0.23955307456924768; … ; 0.680743837131353 -0.8373270588889524 … 0.7077260337201852 0.7226930446596458; -0.027453199371103864 0.59813017813404 … 0.923794525075931 -0.9530764133739168] ≈ [642.447249929516 -278.8761762123269 … -212.76583842839636 1266.9186782146214; -1637.3378389031043 592.1024711032532 … 608.9573111726564 -3368.308447287154; … ; 0.19064220460381714 -1.084957278860193 … 2.524875428657592 -5.494700722575027; 1.3267223193503408 0.4438583679240835 … -2.178845022983828 8.541111439944439]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1348
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: [1.4127274629864612 -2.7983437497013153 … 1.8192481726311622 -0.046622817719759846; 0.46652427778592753 -1.5432209057597732 … 0.4755478106059736 0.8716115817921638; … ; 0.38056946504679895 -1.4970330073331615 … 0.440196643288932 -0.29922407690209996; -0.17993460044361834 1.609780220728006 … -1.5295318197441803 -0.6361195847586669] ≈ [-11073.489069327372 3084.966097082013 … -4815.713881165865 -16753.544016042037; -837.28756751502 235.99810793225154 … -361.4582960199664 -1271.4743193808883; … ; -3.25778417821699 5.347843300273343 … 8.014515310067479 -2.781473670735538; 4.390301302683541 -4.086826203018583 … -4.226015807935562 5.555665274842832]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1341
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: ComplexF64[0.8193094190284993 + 0.9915558368769887im 0.22415549342036767 + 0.8745151345585551im … 0.36798858368372855 + 0.7690665895534696im 0.5745540800980747 + 0.4384194254185281im; 0.42611092421079994 - 0.17672204885593662im 0.578602933188516 + 0.42071126208973364im … 0.4220686607742336 + 0.6595559183210267im 0.5057204869059844 + 0.10681929121640267im; … ; 0.22326967003633724 - 0.051379034617498265im 0.5837287336939615 - 0.5421264057926105im … -0.39158364048390537 + 0.4705630756568081im -0.14606898624474915 + 0.1803735807859584im; 0.6138090459664898 + 0.04767107645474061im 0.6478968718183129 - 0.16731735108168955im … -0.7944539375809108 - 0.6986701833436771im 0.04902669392382625 - 0.1652479701862868im] ≈ ComplexF64[0.7508169636641374 + 0.6822138051686615im 0.9176689111031143 + 0.43796311362818774im … 0.039435152568167986 + 0.9202845156057171im 0.5048365475194853 + 0.36603970769151584im; 0.06736857134409002 + 0.21720462454435197im 0.4624817186757213 + 0.5697005231983422im … 0.7894372819976165 + 0.49719996614209394im 0.03365606462079285 + 0.017743114947542993im; … ; 0.5243464728048117 + 0.2777227348805833im 0.8286641439915097 + 0.7537384962532508im … 0.7147836396792673 + 0.9222318971111207im 0.8280226361038657 + 0.19209822355998984im; 0.23387212531224144 + 0.17928901751942183im 0.6608047083197325 + 0.11564113639840057im … 0.050705695551490404 + 0.9392631978085193im 0.08835671964474667 + 0.2928164167865711im]

Error in testset onemkl:
Test Failed at /home/sdp/.julia/dev/oneAPI/test/onemkl.jl:1348
  Expression: bA[i] ≈ h_bA[i]
   Evaluated: ComplexF64[-2.941055307297047 - 0.5592635406429348im 0.3280108855927687 + 2.1425853682662983im … -0.01363714161250773 + 0.6772956293495943im 1.3583343461370265 - 2.0011264595831397im; 7.9818771456964015 - 0.7690956703464293im -2.146983209611728 - 5.142093330042981im … 0.12741810291030564 - 1.0278295134128643im -2.541688213042083 + 6.69313995192574im; … ; -3.219859462612971 + 1.4562810331181468im 1.7829778346059593 + 1.8343605322998335im … 0.04215373755017471 + 0.907075256851849im -0.09688125838282413 - 3.380859236711263im; 7.411147682145428 - 0.4615461671893425im -1.7686307042773515 - 4.508719434100762im … 0.13297668623204517 - 0.3395742467877949im -2.5749939599084786 + 5.571610817797808im] ≈ ComplexF64[20.108577908130155 - 71.73822355329699im 23.9686700786293 + 108.69911442833462im … 9.249468182815018 - 38.56934775683604im 41.06288981096145 + 11.239831931072073im; -160.5312857549336 + 96.22433813648585im 128.96855434040032 - 296.0245433969883im … -83.73579578344095 + 61.41552512626285im -67.5014247761716 - 88.23334312444234im; … ; 3.533353007198004 - 1.6732194716654962im -1.8024126883611684 + 6.67456927526493im … 2.5478718169555243 - 1.6405111072187997im 0.906483467289754 + 2.2025886952439904im; -4.266812752943549 - 0.6806709657404324im 8.4331327479507 - 2.3487944849610534im … -2.987886280810168 - 0.7284227340569669im 0.9445030999163045 - 3.130107302232157im]

These should probably be reduced to figure out if they are bugs with MKL or with our wrappers.

maleadt commented 3 months ago

Not fixed by https://github.com/JuliaGPU/oneAPI.jl/pull/438