RayTraceBenchmark doesn't compile.

Apr 24, 2015 at 8:15 PM
Edited Apr 24, 2015 at 8:16 PM
Hey I have a Ray Tracing benchmark I use to test out different .NET runtimes. Its very basic but fails to compile with IL2C. It fails with "FileNotFoundException".

Here is a modified file I was trying to get to compile with IL2C: https://www.dropbox.com/s/bvwltrldwczcnmk/Benchmark.cs?dl=0

Here is the original source used for other platforms: https://github.com/zezba9000/RayTraceBenchmark
Coordinator
Apr 25, 2015 at 11:47 AM
zezba9000 wrote:
Hey I have a Ray Tracing benchmark I use to test out different .NET runtimes. Its very basic but fails to compile with IL2C. It fails with "FileNotFoundException".

Here is a modified file I was trying to get to compile with IL2C: https://www.dropbox.com/s/bvwltrldwczcnmk/Benchmark.cs?dl=0

Here is the original source used for other platforms: https://github.com/zezba9000/RayTraceBenchmark
FOA. FineNotFound can be relating to missing dlls. You need to copy all dlls into root folder (when you run IL2C). Second, you need to remove reference from mscorlib.dll and replace with CoreLib.dll and then it may be compiled but CoreLib.dll does not implement all functionality yet.

Kind Regards
Apr 25, 2015 at 9:20 PM
Aww ic, tnx will give it a try.
Apr 28, 2015 at 7:43 AM
Well got it to compile after taking out GC.Collect but it has a runtime crash. .NET version runs good but not the IL2C version.
Coordinator
Apr 28, 2015 at 8:17 AM
Edited Apr 28, 2015 at 8:18 AM
Highly possible. The app should be written in the way as you would compile it with c++ compiler. Do you use DirectX or OpenGL?

PS. Could you drop generated C files I will have a look where is the problem
Apr 28, 2015 at 4:10 PM
Edited Apr 28, 2015 at 4:13 PM
No its not using the GPU, its a very basic C#/.NET CPU benchmark. "Benchmark.cpp" and Benchmark.cs are the files of importance in the zip i'm sending.

Here is the link to all the files used to build: https://www.dropbox.com/s/fhp47fuaspb1qr9/Benchmark.zip?dl=0

NTOE: The code will only run the simulation without giving any results. I did this as I don't know what native features exist in CoreLib and thus just wanted to make sure it would even execute numerical C# to C++ code first.
Coordinator
Apr 29, 2015 at 12:09 PM
OK, I had a look. Console.ReadLine() is not implemented yet.

just comment it