Python Forum
Comepileerror from TMPDIR environmental variable? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Comepileerror from TMPDIR environmental variable? (/thread-35476.html)



Comepileerror from TMPDIR environmental variable? - runboy1581 - Nov-08-2021

Hello. I am trying to use a scientific tool using python and requiring NVIDIA CUDA to run it. I tried to open it in Anaconda Spyder for a test, but I got this:

Error:
CompileError: nvcc preprocessing of C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmpl_hj63ke.cu failed
The full console text from Spyder:
Error:
runfile('C:/Users/lipued/helios/helios.py', wdir='C:/Users/lipued/helios') Traceback (most recent call last): File "C:\Users\lipued\helios\helios.py", line 141, in <module> main() File "C:\Users\lipued\helios\helios.py", line 139, in main run_helios() File "C:\Users\lipued\helios\helios.py", line 40, in run_helios computer = comp.Compute() File "C:\Users\lipued\helios\source\computation.py", line 37, in __init__ self.mod = SourceModule(self.kernels) File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 349, in __init__ cubin = compile( File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 298, in compile return compile_plain(source, options, keep, nvcc, cache_dir, target) File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 87, in compile_plain checksum.update(preprocess_source(source, options, nvcc).encode("utf-8")) File "C:\ProgramData\Anaconda3\lib\site-packages\pycuda\compiler.py", line 58, in preprocess_source raise CompileError( CompileError: nvcc preprocessing of C:\Users\Public\Documents\ESTsoft\CreatorTemp\tmpl_hj63ke.cu failed
So I guessed that the environmental variable is the problem, and I found that the TMPDIR variable is set to C:\Users\Public\Documents\ESTsoft\CreatorTemp

I do not know why the variable is set to there, but can I know how to move the folder and the variable, and would I have a problem if I do so?

Thanks.