Is NVRTC unavailable for Win32? - cuda

I'm running Python27 x32 and getting this error:
Could not load "nvrtc64_75.dll": %1 is not a valid Win32 application.
I've also tried with cuda8.
As I realized, NVRTC docs list x64 as a requirement:
NVRTC requires the following system configuration:
Operating System: Linux x86_64, Linux ppc64le, Linux aarch64, Windows x86_64, or Mac OS X.
(nvrtc64_75.dll really does have 0x8664 in IMAGE_FILE_HEADER and 0x20b (pe32+) magic.)
I'm trying to use libgpuarray's pygpu with theano and I've previously built it with Win32 mingw.
My understanding now is that I'll need to install an x64 version of python and start from there. I know I could use conda instead and the docs in libgpuarray talk about msvc, btw. it worked with mingw so far.
Am I interpreting this right? Is NVRTC really have no working Win32 edition?
edit: got the same %1 is not a valid Win32 error with conda x32 and msvc (no real surprise here).

Just as the documentation you linked indicates, NVRTC requires a 64-bit environment.

Related

Can't find dependent libraries when trying to run deeplearning4j with CUDA

I'm attempting to run a neural network built using dl4j using the GPU. The code works fine when using the native platform dependency, but when I switch to using CUDA, execution fails with an exception:
Caused by: java.lang.UnsatisfiedLinkError: ...\cuda-8.0-6.0-1.3-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jnicuda.dll: Can't find dependent libraries
Here is what I have in my build.gradle:
// compile group: 'org.nd4j', name: 'nd4j-native-platform', version: '0.9.1'
compile group: 'org.nd4j', name: 'nd4j-cuda-8.0-platform', version: '0.9.1'
Here are the dependencies showin in IDEA:
I was able to install the CUDA Toolkit and build the examples just fine. Running deviceQuery shows that my CUDA Driver / Runtime version is 9.1, is this a problem since the nd4j-cuda-8.0-platform references 8.0? Not sure, since the version is 0.9.1, which matches my CUDA version and there does not seem to be a 9.0 platform available.
Is there something additional that I'm missing? If so, how do I troubleshoot/resolve this?
So, it turns out there are a few issues. Firstly, deeplearning4j's current release does not support CUDA 9, which I had naively installed thinking the latest and greatest is the best. CUDA 9 is supported on the latest snapshot, which I tried out, but apparently due to some issue with Gradle and snapshots, was unable to resolve the issue.
Ultimately I uninstalled everything relating to CUDA from my PC and installed CUDA 8 from scratch, restarted the computer, and now things seem to be working.

`python: not found` error when fetching Chromium source with `depot_tools`

I'm recently following the Chromium build instructions for Windows but fetch yields the following error:
$ fetch chromium
/c/src/depot_tools/fetch: line 8: exec: python: not found
NB: Python 3.6 is already installed on my PC.
The Windows build instructions fail to specify the required Python version, but the Linux ones are clear:
System requirements
A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly recommended.
At least 100GB of free disk space.
You must have Git and Python v2 installed already.
The executable for Python 3.x is python3, and the one for Python 2.x is python, therefore you need to install Python 2.x.

Doe SpriteKit not have a Mach-O universal binary on OS X Yosemite?

I am writing a Lispworks application which provides an Objective C bridge. The Lispworks that I use is 32 bit.
I have been able to use SceneKit framework without any problems. However if I have to use SpriteKit, in Lisp I first initialize by loading the framework. When I do that, it fails wit this error:
no suitable image found. Did find:
/System/Library/Frameworks/SpriteKit.framework/SpriteKit: mach-o, but wrong architecture.
In order to resolve the issue, I checked the architectures supported by the frameworks on terminal. These are the outputs:
$ cd /System/Library/Frameworks/SceneKit.framework
$ file ./SceneKit
./SceneKit: Mach-O universal binary with 2 architectures
./SceneKit (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
./SceneKit (for architecture i386): Mach-O dynamically linked shared library i386
$ cd ../SpriteKit.framework
$ file ./SpriteKit
./SpriteKit: Mach-O 64-bit dynamically linked shared library x86_64
Is Sprite Kit 64 bit only? I could not find anything that says so.
Any suggestions to fix this much helpful. I do not want to proceed just by uninstalling Xcode and reinstalling it, that should be the last option I guess.
Env Info
Lispworks 32 Bit
Xcode 6.1 (6A1052d)
OS X 10.10.2
Yes, Sprite Kit is 64-Bit only.
SK requires at least OS X version 10.9 (Mavericks) to be installed. OS X 10.9 is 64-Bit only. As an extension, Sprite Kit can only be used in 64-Bit apps/code.

CUDA cutil.h where is it?

Does anyone know which and where is the SDK/toolkits that contents cutil.h? I tried CUDA toolkits3.2 and toolkits5.0(I know this version it is not supported already for cutil.h)
Also I notice some mentioned about it in how to include cutil.h in linux
but which & where installer that generate "NVIDIA_GPU_Computing/C/common/inc"? My toolkit dont generate such files.
is CUDA3.0 only contain these cutil.h?
For linux, the CUDA SDK (not toolkit) installer versions 3.2 to 4.1 inclusive (at least) should install the .../C/common/inc/cutil.h file. It was eliminated in the CUDA 5.0 release and is not in the installer there as you have discovered.

Building 32-bit Qt Mysql plugin fails with MinGw

I'm building a MySQL plugin for Qt 4.4.3 Open Source Edition (Qt documentation), and using command:
cd %QTDIR%\src\plugins\sqldrivers\mysql
qmake "INCLUDEPATH+=C:\MySQL\include" "LIBS+=C:\MYSQL\MySQL Server <version>\lib\opt\libmysql.lib" mysql.pro
make
I manage to build it to my 64-bit Qt just fine using 64-bit MySQL dev files (using nmake). However, 32-bit build (with mingw-make) fails with linking problems:
Creating library file: c:\Coding\Qt\4.4.3\plugins\sqldrivers\libqsqlmysqld4.a
tmp/obj/debug_shared/qsql_mysql.o(.text+0x10d): In function `Z5codecP8st_mysql':
...lots of same stuff...
The dev files installed by MySQL 5.1 32-bit and 64-bit library are also different: the 64-bit includes libmysql.dll and six .lib files, while 32-bit includes those plus six .pdb files. Relevant to this issue?
Is anyone able to build the 32-bit plugin with Qt 4.4.3/MinGW using MySQL 5.1? Suggestions?
use mysql-noinstall-5.1.14-beta-win32