On Tue, Mar 9, 2010 at 9:13 AM, Pauli Sundberg <[email protected]> wrote: > Hello! > > I mentioned last week on IRC that i succesfully compiled with mingw64 > 64bit windows (7) applications, that used OpenCL and Cuda (GPU computing > libraries). > > The thing worked well by using gendef to create .def files from the > corresponding .dll's and then using libtool to create import libraries. > > Link and run, and everything went fine. > > The def files for 32bit and 64bit OpenCL are attached (original dll > names are OpenCL.dll for both). > > The def files for 32bit and 64bit CUDA are attached (original dll names > are nvcuda.dll for both) > > > > Pauli!
On Mon, Mar 15, 2010 at 11:07 AM, Pauli Salmivuori <[email protected]> wrote: > Hallo! > > Header files for 32b/64bit windows api for OpenCL and Cuda (driver > interface) attached as requested. > > I fast checked with diff and all 32bit header files are identical to > corresponding 64bit headers. > I attached them all anyway as size is small and human error is more than > possible. > > If you want to confirm this, the headers can be found from Nvidia site: > http://forums.nvidia.com/index.php?showtopic=149959 (Beta 3 download) > and there X bit toolkit. > > Currently: > http://developer.download.nvidia.com/compute/cuda/3_0-Beta1/toolkit/cudatoolkit_3.0-beta1_win_32.exe > http://developer.download.nvidia.com/compute/cuda/3_0-Beta1/toolkit/cudatoolkit_3.0-beta1_win_64.exe > > About 50Mb each. > > What i have tested so far is to compile 32bit and 64bit program against > single 64bit headers and use > corresponding import library from Xbit .dll, and everything seemed to work > fine (numerical results were ok). > > The .zip files contains original headers in ./ directory, the 32bits_cuda.h > original name is "cuda.h" as > is the case with 64bit. > > Pauli! In the 32 bit version of the OpenCL def file, you need the __stcall suffix of @0 for clUnloadCompiler, ie: clunloadcompi...@0 This is a problem with gendef which cannot differentiate a function accepting no arguments from being __cdecl or __stdcall. Of course the 64 bit version is not affected. The headers: the 32 bit and 64 bit versions are identical. For cuda, they look way too commercial, but for OpenCL from the Khronos group, that is fine for anyone to include or distribute, I think. This may serve as a reference to users seeking this kind of knowledge, thanks. -- Ozkan ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
