353 | | = Part 3 CUDA !HowTo = |
354 | | == 3.1 NVIDIA CUDA Example == |
| 353 | = Part 3 Running CUDA on Xen !HowTo = |
| 354 | |
| 355 | == 3.1 Create a virtual machine for CUDA == |
| 356 | |
| 357 | rider@cloud:~$ sudo vim /etc/xen-tools/xen-tools.conf [[BR]] |
| 358 | {{{ |
| 359 | dir = /home |
| 360 | install-method = debootstrap |
| 361 | size = 6Gb # Disk image size. |
| 362 | memory = 256Mb # Memory size |
| 363 | swap = 128Mb # Swap size |
| 364 | fs = ext3 # use the EXT3 filesystem for the disk image. |
| 365 | dist = hardy # Default distribution to install. ---> For CUDA Support (Ubuntu 8.0.4) |
| 366 | image = sparse # Specify sparse vs. full disk images. |
| 367 | gateway = 140.XXX.XXX.XXX |
| 368 | netmask = 255.255.255.0 |
| 369 | broadcast = 140.XXX.XXX.XXX |
| 370 | kernel = /boot/vmlinuz-`uname -r` |
| 371 | initrd = /boot/initrd.img-`uname -r` |
| 372 | mirror = http://gb.archive.ubuntu.com/ubuntu/ |
| 373 | ext3_options = noatime,nodiratime,errors=remount-ro |
| 374 | ext2_options = noatime,nodiratime,errors=remount-ro |
| 375 | xfs_options = defaults |
| 376 | reiser_options = defaults |
| 377 | }}} |
| 378 | rider@cloud:~$ sudo xen-create-image --hostname cuda --ip 140.XXX.XXX.XXX [[BR]] |
| 379 | |
| 380 | == 3.2 NVIDIA CUDA Example == |