Skip to content

Commit

Permalink
gdev: Minor update to README files
Browse files Browse the repository at this point in the history
  • Loading branch information
shinpei0208 committed Jul 16, 2013
1 parent 26e0970 commit 993bd4a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
8 changes: 3 additions & 5 deletions docs/README.gdev
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -88,12 +88,10 @@ sudo make install
export LD_LIBRARY_PATH="/usr/local/gdev/lib64:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="/usr/local/gdev/lib64:$LD_LIBRARY_PATH"
export PATH="/usr/local/gdev/bin:$PATH" export PATH="/usr/local/gdev/bin:$PATH"


6. CUDA Driver API 6. CUDA Runtime


Gdev currently supports a limited set of CUDA Driver API. We plan to Gdev currently supports a limited set of CUDA Driver/Runtime API.
support a full set of CUDA Driver API in future work. If you prefer It is defined as Micro CUDA (uCUDA) in Gdev.
CUDA Runtime API, you should use some compiler framework, such as
GPU Ocelot, which can translate CUDA Drier API to Runtime API.


cd $(TOPDIR)/gdev/cuda cd $(TOPDIR)/gdev/cuda
mkdir build mkdir build
Expand Down
17 changes: 4 additions & 13 deletions docs/README.nouveau
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ sudo make install
export LD_LIBRARY_PATH="/usr/local/gdev/lib64:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="/usr/local/gdev/lib64:$LD_LIBRARY_PATH"
export PATH="/usr/local/gdev/bin:$PATH" export PATH="/usr/local/gdev/bin:$PATH"


4. CUDA Driver API 4. CUDA Runtime


Gdev currently supports a limited set of CUDA Driver API. We plan to Gdev currently supports a limited set of CUDA Driver/Runtime API.
support a full set of CUDA Driver API in future work. If you need It is defined as Micro CUDA (uCUDA) in Gdev.
CUDA Runtime API, you should use some compiler framework, such as
Ocelot, which can translate CUDA Drier API to Runtime API.


cd $(TOPDIR)/gdev/cuda cd $(TOPDIR)/gdev/cuda
mkdir build mkdir build
Expand All @@ -86,16 +84,9 @@ cd build
make make
sudo make install sudo make install


5. CUDA Driver API test (user-space programs) 5. CUDA Driver API test


cd $(TOPDIR)/test/cuda/user/madd cd $(TOPDIR)/test/cuda/user/madd
make # you will need to add "-ldrm -ldrm_nouveau -L /usr/lib" make # you will need to add "-ldrm -ldrm_nouveau -L /usr/lib"
./user_test 256 # a[256] + b[256] = c[256] ./user_test 256 # a[256] + b[256] = c[256]


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.
11 changes: 5 additions & 6 deletions docs/README.nvrm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ sudo make install
export LD_LIBRARY_PATH="/usr/local/gdev/lib64:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="/usr/local/gdev/lib64:$LD_LIBRARY_PATH"
export PATH="/usr/local/gdev/bin:$PATH" export PATH="/usr/local/gdev/bin:$PATH"


4. CUDA Driver API 4. CUDA Runtime


Gdev currently supports a limited set of CUDA Driver API. We plan to Gdev currently supports a limited set of CUDA Driver/Runtime API.
support a full set of CUDA Driver API in future work. If you need It is defined as Micro CUDA (uCUDA) in Gdev.
CUDA Runtime API, you should use some compiler framework, such as
Ocelot, which can translate CUDA Drier API to Runtime API.


cd $(TOPDIR)/gdev/cuda cd $(TOPDIR)/gdev/cuda
mkdir build mkdir build
Expand All @@ -66,9 +64,10 @@ cd build
make make
sudo make install sudo make install


5. CUDA Driver API test (user-space programs) 5. CUDA Driver API test


cd $(TOPDIR)/test/cuda/user/madd cd $(TOPDIR)/test/cuda/user/madd
make make
./user_test 256 # a[256] + b[256] = c[256] ./user_test 256 # a[256] + b[256] = c[256]
# You may need root access - if so add "sudo" before "./user_test"! # You may need root access - if so add "sudo" before "./user_test"!

0 comments on commit 993bd4a

Please sign in to comment.