Closed drtpotter closed 6 years ago
Actually there is already code that should return the correct type, but there is a typo in it - it checks the value of platform.system
instead of platform.system()
. Before I fix it, could you check if import platform; platform.system()
returns "Windows"
for you? I don't have a Windows machine handy.
Hi Bogdan,
I can confirm that
import platform platform.system()
does indeed return 'Windows'
Kind regards, Toby
On Mon, Nov 5, 2018 at 8:13 AM Bogdan Opanchuk notifications@github.com wrote:
Actually there is already code that should return the correct type, but there is a typo in it - it checks the value of platform.system instead of platform.system(). Before I fix it, could you check if import platform; platform.system() returns "Windows" for you? I don't have a Windows machine handy.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fjarri/reikna/issues/48#issuecomment-435787582, or mute the thread https://github.com/notifications/unsubscribe-auth/ATR6VWa9A5pkRpVW2Yhy8X4hT3LeCvlmks5ur_MagaJpZM4YNyIl .
Should be fixed by commit cac7e398ba323911, try it out.
Ok, closing for now, please reopen if there's still a problem.
Hi Bogdan,
I've encountered an issue with reikna.cluda.dtypes.ctype on Windows when using the CUDA api ( reikna.cluda.cuda_api()). The code
prints "long", which is fine for compiling kernels using the Reikna OpenCL api on Windows and both OpenCL and CUDA Reikna api's on Linux. However when I use the Microsoft Visual Studio compiler with the CUDA api on Windows, then ctype(np.int64) should evaluate to "long long" instead of "long" because the Visual Studio compiler interprets "long" as a 4 byte integer.
Here is some code where this issue causes an incorrect result when using the Reikna CUDA api on Windows.
I am using Microsoft Visual Studio 14.0 on Windows 10 with CUDA 9.2, and I get all zeros in the result. If I then switch to the OpenCL api I get the expected result of 10 in each element of the array.