Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dexter2206/julia-thrust-interop-example
https://github.com/dexter2206/julia-thrust-interop-example
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dexter2206/julia-thrust-interop-example
- Owner: dexter2206
- License: mit
- Created: 2023-08-24T21:29:36.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-24T21:51:17.000Z (over 1 year ago)
- Last Synced: 2024-10-26T00:00:57.808Z (2 months ago)
- Language: Julia
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of interop between Julia and thrust
> [!WARNING]
> This is only a PoC, which is why running code from this repo for the first time is rather cumbersome. For production deployments you probably need to figure out a better way for distributing the shared library.
>## How to run
1. Clone this repository and its submodules:
```shell
git clone --recurse-submodules [email protected]:dexter2206/julia-thrust-interop-example.git
```
2. Build C++ library containing thrust wrapper by running make:
```shell
make
```If everything went correctly, you should now have `lib` directory with `thrust_wrapper.so` in it.
3. Add `lib` directory to `LD_LIBRARY_PATH`
```shell
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PWD}/lib
```
Remember that this works only in your current terminal session!
5. Run julia interpreter and launch tests. If everything works correctly, all tests should pass.