Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7bc741
commit 526418b
Showing
10 changed files
with
224 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
##################################################################### | ||
## Gdev: Open-Source GPGPU Runtime and Driver Software | ||
## | ||
## README.gdev | ||
## | ||
## Copyright (C) Shinpei Kato | ||
## | ||
## Nagoya University | ||
## Parallel and Distributed Systems Lab (PDSL) | ||
## http://pdsl.jp | ||
## | ||
## University of California, Santa Cruz | ||
## Systems Research Lab (SRL) | ||
## http://systems.soe.ucsc.edu | ||
## | ||
## All Rights Reserved. | ||
###################################################################### | ||
|
||
Follow the instruction below to use Gdev's CUDA. You may be required | ||
to install additional software packages depending on your environment. | ||
e.g., bison, flex, boost, boost-devel | ||
|
||
$(TOPDIR) represents your top working directory where you installed | ||
the Gdev repository. | ||
|
||
1. Gdev's CUDA installation | ||
|
||
Gdev currently supports a limited set of CUDA Driver/Runtime API. | ||
It is defined as Micro CUDA (uCUDA) in Gdev. | ||
|
||
cd $(TOPDIR)/gdev/cuda | ||
mkdir build | ||
cd build | ||
#if you want to disable Runtime API | ||
../configure | ||
#else | ||
../configure | ||
#endif | ||
make | ||
sudo make install | ||
|
||
Gdev also supports CUDA in the operating system. You are required to | ||
install "kcuda" module to use this functionality. | ||
-> See docs/README.gdev | ||
|
||
cd $(TOPDIR)/gdev/cuda | ||
mkdir kbuild | ||
cd kbuild | ||
../configure --target=kcuda | ||
make | ||
sudo make install | ||
|
||
2. CUDA Driver API test (user-space programs) | ||
|
||
cd $(TOPDIR)/test/cuda/user/madd | ||
make | ||
./user_test 256 # a[256] + b[256] = c[256] | ||
|
||
3. CUDA Driver API test (kernel-space programs) | ||
|
||
Note that you need 'kcuda' to be installed a priori if you want to | ||
run CUDA in the OS. | ||
|
||
cd $(TOPDIR)/test/cuda/kernel/memcpy | ||
make | ||
sudo insmod ./kernel_test.ko size=10000 # copy 0x10000 size | ||
|
||
NOTE: Please be careful when doing this test as it runs a program | ||
in module_init(). If you run a very long program as it is, you may | ||
crash your system. If you want to run a very long program, you must | ||
provide a proper module implementation, e.g., using kernel threads. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.