CUDA5.0 + MinGW

Hello! I’m wonder if it is possible in any way to use CUDA with MinGW.
Does any one have such experience?

I have a project with VS2008 and CUDA. For some reason i need to port it to the MinGW;
But because of well known issues (nvcc use ‘cl.exe’ to do the final job and create .obj or .lib), it is nearly impossible.

The way to compile code with cl to static library does not seems to work too.
When any kernell is called, the “Invalid Device Function” is raised.

I think i can create dll with msvc cl compiler and then link it to the rest of code compiled with gcc.
But this seems to be a headache …

Many thanks!

up!