[Bf-committers] [Idea] MinGW Cycles cpu kernel in MSVC builds

2013-05-27 Thread Jürgen Herrmann
While writing an answer to another thread I had an insane idea:

Maybe if we had a possibility to compile the cycles CPU kernel lib with mingw 
and link it into a version of blender built with MSVC we would get a blender 
build with insane speed improvements on windows while getting a good OpenMP 
performance on the rest of blender.

What do you guys think? Linking to mingw libs in MSVC 2012 is possible and 
harmless as long as we don't use win api calls inside the lib.
This should work great for cycles' CPU kernel lib.
The only question is how can we do this without having to manually replace the 
lib file?

/Jürgen
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] [Idea] MinGW Cycles cpu kernel in MSVC builds

2013-05-27 Thread Cezary Kopias
I think some mingw-w64 guys on irc where writing that they did some tests  
with msvc.
Maybe it would be a good idea to check on this. The benefit is work the  
effort.


On Mon, 27 May 2013 23:01:53 +0200, Jürgen Herrmann   
wrote:

> While writing an answer to another thread I had an insane idea:
>
> Maybe if we had a possibility to compile the cycles CPU kernel lib with  
> mingw and link it into a version of blender built with MSVC we would get  
> a blender build with insane speed improvements on windows while getting  
> a good OpenMP performance on the rest of blender.
>
> What do you guys think? Linking to mingw libs in MSVC 2012 is possible  
> and harmless as long as we don't use win api calls inside the lib.
> This should work great for cycles' CPU kernel lib.
> The only question is how can we do this without having to manually  
> replace the lib file?
>
> /Jürgen
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers


-- 
Using Opera's mail client: http://www.opera.com/mail/
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] [Idea] MinGW Cycles cpu kernel in MSVC builds

2013-05-27 Thread Brecht Van Lommel
I don't think this will work well with Open Shading Language support,
this has some windows API calls. Before we do complex setups like this
the first thing to do is really to just run a basic profiler on the
code and see if anything strange jumps out. No one has even attempted
to optimize this code for MSVC.

On Mon, May 27, 2013 at 11:01 PM, Jürgen Herrmann  wrote:
> While writing an answer to another thread I had an insane idea:
>
> Maybe if we had a possibility to compile the cycles CPU kernel lib with mingw 
> and link it into a version of blender built with MSVC we would get a blender 
> build with insane speed improvements on windows while getting a good OpenMP 
> performance on the rest of blender.
>
> What do you guys think? Linking to mingw libs in MSVC 2012 is possible and 
> harmless as long as we don't use win api calls inside the lib.
> This should work great for cycles' CPU kernel lib.
> The only question is how can we do this without having to manually replace 
> the lib file?
>
> /Jürgen
> ___
> Bf-committers mailing list
> Bf-committers@blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers


Re: [Bf-committers] [Idea] MinGW Cycles cpu kernel in MSVC builds

2013-05-27 Thread Antony Riakiotakis
OSL is still unstable on both MinGWs (crash on rendering). I have long
managed to compile and link those locally and can provide the patches if
someone wishes to investigate. Apart from that, linking C++ code from
different compilers is a nono.
Also, openmp support is missing due to the horrible pthread implementation
of MinGW64 which I am looking at right now. It's not surprising at all that
this code deadlocks and crashes so much. I so want to fix that error but
simple good practices such as comments, identation and variable naming are
things that the people who wrote the library scarcely heard about.
___
Bf-committers mailing list
Bf-committers@blender.org
http://lists.blender.org/mailman/listinfo/bf-committers