japaric-archived / cuda Goto Github PK
View Code? Open in Web Editor NEWExperiments with CUDA and Rust
License: Apache License 2.0
Experiments with CUDA and Rust
License: Apache License 2.0
Hello,
I'm running test on your repo, but it seems I cannot call cuda SDK.
Compiling cuda v0.1.0 (file:///Users/kwangin/workspace/study/cuda)
error[E0432]: unresolved import `self::ll::CUdevice_attribute_enum::*`
--> src/driver/mod.rs:130:13
|
130 | use self::ll::CUdevice_attribute_enum::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `CUdevice_attribute_enum` in `ll`
error[E0432]: unresolved import `self::ll::cudaError_enum::*`
--> src/driver/mod.rs:414:9
|
414 | use self::ll::cudaError_enum::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Could not find `cudaError_enum` in `ll`
error[E0412]: cannot find type `CUcontext` in module `ll`
--> src/driver/mod.rs:43:13
|
43 | handle: ll::CUcontext,
| ^^^^^^^^^^^^^ not found in `ll`
Is it problem of cuda SDK, or something else?
It causes on OSX 10.10, Cuda 7.5.
HIP is a sort-of subset of the CUDA API with a few trivial name-changes, which compiles to either CUDA on NVidia platforms, or to compatible code on AMD cards. It's open-source AFAIK, and integrated into AMD's ROCm stack. AMD have been porting some of the big ML frameworks to ROCm using HIP, including Caffe.
It would be pretty cool if Rust's CUDA ecosystem could be grown to include AMD devices using HIP. But, being unable to contribute much to the effort, it's only a suggestion. :)
Most Rust C bindings will automatically check common places to find the required libraries, and request that rustc
should link against them. If that fails, it's also typical to read a crate-specific environment variable to find them, rather than requiring the user to set LIBRARY_PATH. This crate should do the same.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.