Andreas Klöckner <li...@...> writes:

> 
> On Montag 21 Dezember 2009, Ewan Maxwell wrote:
> > test_driver.py works(all 16 tests), the example code i mentioned works to
> > however, other tests still fail with the same reason("nvcc fatal~")
> 
> That's strange. If all of them have the same path, why would some fail and 
> some succeed?
> 
> Andreas
I found a possible solution.
But first, you need to understand that I have a non-english OS.(Windows 7 x64 
KR)
the native codepage of my OS is CP949 but some of the cuda INCLUDEs have a non 
compatible codepage.

Certain files that were encoded with a non compatible codepage, and when they 
are referenced in the source, nvcc (and VS2008 too) pops a warning about the 
codepage and needing to change the files to unicode everytime.

This just ends with a warning in vs2008, but apparently pycuda interprets the 
warnings as errors.

I do not know how many files are affected, but 

$CUDAROOT$\Include\math_functions.h 

is definitely affected(thus, test_driver.py runs without a problem while 
test_gpuarray fails because it needs math_functions.h)

I simply opened the file with VS2008 and saved it without doing anything.
(I hoped VS2008, supporting both unicode and CP949, would sort it out for me)

Fortunately the problem seems to be solved.

Now, 
every test passes without a problem except:
test_gpuarray

....................C:\Apps\Python26\lib\site-packages\pycuda-0.93-py2.6-win-amd
64.egg\pycuda\gpuarray.py:601: DeprecationWarning: struct integer overflow maski
ng is deprecated
  result.gpudata, start, step, size)
E

But I believe that this is an independent problem.




_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to