L
LKeene
Guest
Ive been trying to use the new SIMD features of .NET 4.6 in Visual C# 2015 but Im having great difficulty. The computer Im having trouble with is an Ivy Bridge machine with Windows 10 and VS 2015 Community installed. I used the Nuget package manager feature in VS to install the System.Numerics.Vectors package (at the solution level). My application builds and runs but fails at runtime at the following line:
Int32 VectorLength = Vector<Single>.Count;
The error I get is:
"An unhandled exception of type System.NotSupportedException occurred in System.Numerics.vectors.dll."
"Additional information: Vector<T>.Count cannot be called via reflection when intrinsics are enabled."
On my primary desktop development box (for which I followed the exact same nugget install procedure) the above code will run and return the correct result of "8", but if I position the mouse cursor over "Vector<Single>.Count" while debugging I get the same error. Does anyone know what the problem may be? Thanks in advance.
-L
Edit: After some more experiments the release version runs but emits the wrong value for "Count" for my processor (4 instead of 8). The debug version still fails completely. What a disappointment this is.
Continue reading...
Int32 VectorLength = Vector<Single>.Count;
The error I get is:
"An unhandled exception of type System.NotSupportedException occurred in System.Numerics.vectors.dll."
"Additional information: Vector<T>.Count cannot be called via reflection when intrinsics are enabled."
On my primary desktop development box (for which I followed the exact same nugget install procedure) the above code will run and return the correct result of "8", but if I position the mouse cursor over "Vector<Single>.Count" while debugging I get the same error. Does anyone know what the problem may be? Thanks in advance.
-L
Edit: After some more experiments the release version runs but emits the wrong value for "Count" for my processor (4 instead of 8). The debug version still fails completely. What a disappointment this is.
Continue reading...