你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Merge branch 'devel' of https://github.com/gprMax/gprMax into devel
这个提交包含在:
@@ -259,7 +259,7 @@ class CUDAUpdates:
|
||||
self.drv.init()
|
||||
|
||||
# Create device handle and context on specific GPU device (and make it current context)
|
||||
self.dev = self.drv.Device(config.get_model_config().cuda['gpu'].deviceID)
|
||||
self.dev = config.get_model_config().device['dev']
|
||||
self.ctx = self.dev.make_context()
|
||||
|
||||
# Initialise arrays on GPU, prepare kernels, and get kernel functions
|
||||
|
@@ -428,7 +428,7 @@ def print_cuda_info(devs):
|
||||
logger.debug(f'PyCUDA: {pycuda.VERSION_TEXT}')
|
||||
|
||||
for ID, gpu in devs.items():
|
||||
logger.basic(f" |--->Device {ID}: {' '.join(gpu.name.split())} | "
|
||||
logger.basic(f" |--->Device {ID}: {' '.join(gpu.name().split())} | "
|
||||
f"{human_size(gpu.total_memory(), a_kilobyte_is_1024_bytes=True)}")
|
||||
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户