03-09-2020 10:38 AM
I just did a fresh install of LV 2019, 64 bit on a Ryzen 3600 and got the same behavior. Seems like an issue with the Ryzen 3x processors that is still present.
The marked solution works for me as well.
03-23-2020 05:37 AM
@altenbach wrote:
Thinking about this a little more, it is not clear why the dll does not load without the tweak. Shouldn't it run just fine, but less optimized? What else comes into play here?
Most likely, the MKL does some serious initialization code in its DLLMain function, which gets called by Windows when it tries to load a DLL. In this DLLMain() function the routine to initialize the exact SSE method seems to error out because it can't determine the correct CPU family and this error is propagated up the call chain to the DLLMain function which then returns a failure to Windows, which lets Windows abort the loading of the DLL, and that in turn will fail the loading of the lvanlys.dll.
There are two possible bugs in this:
1) The initialization method might not need to error out on not being able to detect the exact SSE implementation but instead just fall back to a safe one like SSE2 which probably all current CPUs should support albeit this would result in less performance.
2) The error might not need to propagate up the call chain and fail the loading of the DLL if there is some sort of fallback possible, even if that fallback has (terrible) performance.
03-23-2020 08:41 AM
I had the same problem with a new Ryzen 3600 and the fix worked fine for me also.
Thank you so much!
04-28-2020 12:15 PM
Worked for me as well using Ryzen 9 3950X, thank you!
07-14-2020 05:39 AM
I’ve run into this issue as well, and the solution worked for me. Does anyone know what version of LabVIEW has this fixed? 2019 SP1? 2020?
09-06-2020 12:54 PM
This solved my issue too! Both MKL_DEBUG_CPU_TYPE=4 and MKL_DEBUG_CPU_TYPE=5 work for me. My cpu is AMD Ryzen 9 3900XT 12-Core Processor.
This issue was very frustrating! I searched online many times. I tried many ways, like installing different versions of Labview, OS. Finally, I got here.
Really hope the team of Labview can solve this in the near future.
thanks a lot, anyway
09-12-2020 04:36 AM - edited 09-12-2020 04:39 AM
where do I put the enviromental variables in LabView (the code)? sorry, i'm new to the app.
09-12-2020 04:25 PM - edited 09-12-2020 04:25 PM
That has nothing to do with LabVIEW, but rather with Windows.
10-02-2020 06:41 PM
I experienced this issue too, and it took me a while until I found this thread, very frustrating. I hope NI can fix this at some point.
Thank you so much BoKnows for posting this workaround!
11-03-2020 10:10 AM
If anyone stumbles upon this the bug, The number reported is actually bug number 960430 and is fixed in LabVIEW 2020 and NXG 5.0