在GPU计算中,有一个设备,即GPU和主机,即CPU。我写了一个简单的hello world程序,它将在gpu上分配一些内存,将两个参数(例如src[]和dest[])传递给内核,将src字符串(即Hello world )复制到dest字符串,并将dest字符串从gpu获取到主机。字符串"src“是由GPU读取还是由CPU写入GPU?另外,当我们从GPU取回字符串时,是GPU写入CPU还
对于GPU单元的顺序,我一直得到相互冲突的输出。其中有两个: Tesla K40和NVS315 (从未使用过的遗留设备)。]='1'print torch.cuda.get_device_name(0)UserWarning:
Found GPU0PyTorch no longer supports this GPU because it is too old.warnings.warn(old_gpu_warn % (d