Python Forum
Comepileerror from TMPDIR environmental variable?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comepileerror from TMPDIR environmental variable?
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Newbie Environmental Meta Issue wallacebmann 2 2,413 Apr-26-2019, 02:08 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020