Skip to content

Example project that uses the cudawrappers library as a dependency by having it locally installed

License

Notifications You must be signed in to change notification settings

nlesc-recruit/cudawrappers-usage-example-locally-installed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example program using cudawrappers

This is an example project that uses the cudawrappers library as a dependency by having it locally installed.

To run the example, first install cudawrappers:

git clone https://github.com/nlesc-recruit/cudawrappers
cd cudawrappers
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local -S . -B build
make -C build
make -C build install

the -DCMAKE_INSTALL_PREFIX=$HOME/.local tells the computer to install the program in ~/.local. This is useful if you do not have root access to the computer you are working on.

Next, install the vector_add_example program from this repository:

git clone https://github.com/nlesc-recruit/usage-example-locally-installed
cd usage-example-locally-installed
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local -S . -B build
make -C build
make -C build install

The example can be run with:

vector_add_example

or, if ~/.local/bin is not in your $PATH,

~/.local/bin/vector_add_example

The expected behaviour is that

hurray! 2

is printed to the terminal.

About

Example project that uses the cudawrappers library as a dependency by having it locally installed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published