Quick start guide
monolish pre-build library and examples are composed in a container:
docker run -it --rm ghcr.io/ricosjp/monolish/mkl:0.16.3
cd /usr/share/monolish/examples/blas/innerproduct
make cpu
There are also GPU-enabled images:
docker run -it --rm --gpus all ghcr.io/ricosjp/monolish/mkl-nvidia:0.16.3
/usr/share/monolish/link_monolish_gpu.sh
cd /usr/share/monolish/examples/blas/innerproduct
make gpu
Be sure that you need to detect your GPU architecture (e.g. Ampare, Volta, ...) by link_monolish_gpu.sh
script.
These compiles following example code:
#include <iostream>
int main() {
size_t N = 100;
std::cout << ans << std::endl;
return 0;
}
void send(T &x)
send data to GPU
void dot(const vector< double > &x, const vector< double > &y, double &ans)
inner product (dot)
Please see CPU Examples and GPU Examples for more examples.
For Users
Installation
Examples
API Overview
For Developers
Citations
Links
Developer's memo (in Japanese)
Copyright 2021 RICOS Co. Ltd.