CompileError( pycuda.driver.CompileError: nvcc preprocessing of C:\Users\25244\AppData\Local\Temp\tmpgvjck3sh.cu failed

33 views
Skip to first unread message

王辰宇

unread,
Mar 3, 2025, 5:31:41 AMMar 3
to gprMax-users
I met problems when running the gprMax on another PC and I don't know why. I tried running gprMax to produce an A-scan on the ternimal and it worked well. But when I tried running my code it occurred errors below. Here is what it looks like:

Exception in Tkinter callback
    kernels_fields = SourceModule(kernels_template_fields.substitute(REAL=cudafloattype, COMPLEX=cudacomplextype, N_updatecoeffsE=G.updatecoeffsE.size, N_updatecoeffsH=G.updatecoeffsH.size, NY_MATCOEFFS=G.updatecoeffsE.shape[1], NY_MATDISPCOEFFS=1, NX_FIELDS=G.nx + 1, NY_FIELDS=G.ny + 1, NZ_FIELDS=G.nz + 1, NX_ID=G.ID.shape[1], NY_ID=G.ID.shape[2], NZ_ID=G.ID.shape[3], NX_T=1, NY_T=1, NZ_T=1), options=compiler_opts)
  File "D:\Dpanfilefoder\pythonProject\gprMax-master\venv\lib\site-packages\pycuda\compiler.py", line 349, in __init__
    cubin = compile(
  File "D:\Dpanfilefoder\pythonProject\gprMax-master\venv\lib\site-packages\pycuda\compiler.py", line 298, in compile
    return compile_plain(source, options, keep, nvcc, cache_dir, target)
  File "D:\Dpanfilefoder\pythonProject\gprMax-master\venv\lib\site-packages\pycuda\compiler.py", line 87, in compile_plain
    checksum.update(preprocess_source(source, options, nvcc).encode("utf-8"))
  File "D:\Dpanfilefoder\pythonProject\gprMax-master\venv\lib\site-packages\pycuda\compiler.py", line 58, in preprocess_source
    raise CompileError(
pycuda.driver.CompileError: nvcc preprocessing of C:\Users\25244\AppData\Local\Temp\tmpgvjck3sh.cu failed
[command: nvcc --preprocess -w -arch sm_86 -m64 -Id:\dpanfilefoder\pythonproject\gprmax-master\venv\lib\site-packages\pycuda\cuda C:\Users\25244\AppData\Local\Temp\tmpgvjck3sh.cu --compiler-options -EP]
1.png
Reply all
Reply to author
Forward
0 new messages