[PyCUDA] cl.exe

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[PyCUDA] cl.exe

Ajit Limaye

Hi:

 

I’m just getting started with PyCUDA. I installed it with pip (on a Win-10 + Anaconda machine using “pip install”) and then tried to run the tutorial example here: https://documen.tician.de/pycuda/tutorial.html. When I do, I get the following error messages:

 

Traceback (most recent call last):

  File "<stdin>", line 7, in <module>

  File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 291, in __init__

    arch, code, cache_dir, include_dirs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 254, in compile

    return compile_plain(source, options, keep, nvcc, cache_dir, target)

  File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 137, in compile_plain

    stderr=stderr.decode("utf-8", "replace"))

pycuda.driver.CompileError: nvcc compilation of C:\Users\Ajit\AppData\Local\Temp\tmp4z9j5802\kernel.cu failed

[command: nvcc --cubin -arch sm_61 -m64 -Ic:\programdata\anaconda3\lib\site-packages\pycuda\cuda kernel.cu]

[stdout:

nvcc fatal   : Cannot find compiler 'cl.exe' in PATH

 

I have Visual Studio Community 2017 installed, but there is no directory for it under “Program Files(x86)” – I only see 2014. And in that directory, I can’t find cl.exe. So my question is: where is cl.exe?

 

Thank you for your help.

 

Ajit


_______________________________________________
PyCUDA mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Reply | Threaded
Open this post in threaded view
|

[PyCUDA] Re: cl.exe

Andreas Kloeckner
Hi Ajit,

"Ajit Limaye" <[hidden email]> writes:

> I'm just getting started with PyCUDA. I installed it with pip (on a Win-10 +
> Anaconda machine using "pip install") and then tried to run the tutorial
> example here: https://documen.tician.de/pycuda/tutorial.html. When I do, I
> get the following error messages:
>
>  
>
> Traceback (most recent call last):
>
>   File "<stdin>", line 7, in <module>
>
>   File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line
> 291, in __init__
>
>     arch, code, cache_dir, include_dirs)
>
>   File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line
> 254, in compile
>
>     return compile_plain(source, options, keep, nvcc, cache_dir, target)
>
>   File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line
> 137, in compile_plain
>
>     stderr=stderr.decode("utf-8", "replace"))
>
> pycuda.driver.CompileError: nvcc compilation of
> C:\Users\Ajit\AppData\Local\Temp\tmp4z9j5802\kernel.cu failed
>
> [command: nvcc --cubin -arch sm_61 -m64
> -Ic:\programdata\anaconda3\lib\site-packages\pycuda\cuda kernel.cu]
>
> [stdout:
>
> nvcc fatal   : Cannot find compiler 'cl.exe' in PATH
>
> I have Visual Studio Community 2017 installed, but there is no directory for
> it under "Program Files(x86)" - I only see 2014. And in that directory, I
> can't find cl.exe. So my question is: where is cl.exe?
Visual Studio should ship with a batch file 'vcvars.bat' that you can
run. After running that on the command line, the VS C comiler (cl.exe)
should be on your path and runnable on the command line within that same
shell.

HTH,
Andreas

_______________________________________________
PyCUDA mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]

signature.asc (847 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[PyCUDA] =?eucgb2312_cn?b?u9i4tDogY2wuZXhl?=

黄 瓒
In reply to this post by Ajit Limaye
Hi Ajit,
This might not be a PyCUDA question, pls see 


to set your PATH in VS.

Regards,
Peter

发件人: Ajit Limaye <[hidden email]>
发送时间: 2019年4月25日 23:05
收件人: [hidden email]
主题: [PyCUDA] cl.exe
 

Hi:

 

I’m just getting started with PyCUDA. I installed it with pip (on a Win-10 + Anaconda machine using “pip install”) and then tried to run the tutorial example here: https://documen.tician.de/pycuda/tutorial.html. When I do, I get the following error messages:

 

Traceback (most recent call last):

  File "<stdin>", line 7, in <module>

  File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 291, in __init__

    arch, code, cache_dir, include_dirs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 254, in compile

    return compile_plain(source, options, keep, nvcc, cache_dir, target)

  File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 137, in compile_plain

    stderr=stderr.decode("utf-8", "replace"))

pycuda.driver.CompileError: nvcc compilation of C:\Users\Ajit\AppData\Local\Temp\tmp4z9j5802\kernel.cu failed

[command: nvcc --cubin -arch sm_61 -m64 -Ic:\programdata\anaconda3\lib\site-packages\pycuda\cuda kernel.cu]

[stdout:

nvcc fatal   : Cannot find compiler 'cl.exe' in PATH

 

I have Visual Studio Community 2017 installed, but there is no directory for it under “Program Files(x86)” �C I only see 2014. And in that directory, I can’t find cl.exe. So my question is: where is cl.exe?

 

Thank you for your help.

 

Ajit


_______________________________________________
PyCUDA mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]