Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 13-Oct-2021 | - | ||||
BUILD | H A D | 13-Oct-2021 | 102 | 8 | 7 | |
Makefile | H A D | 13-Oct-2021 | 4.4 KiB | 120 | 97 | |
README.md | H A D | 13-Oct-2021 | 1.2 KiB | 26 | 16 | |
WORKSPACE | H A D | 13-Oct-2021 | 59 | 5 | 4 | |
hello.c | H A D | 13-Oct-2021 | 1.7 KiB | 33 | 19 | |
hello.cpp | H A D | 13-Oct-2021 | 1.7 KiB | 32 | 17 | |
hello.f | H A D | 13-Oct-2021 | 2.1 KiB | 46 | 31 | |
hello.vcxproj | H A D | 13-Oct-2021 | 21.9 KiB | 389 | 389 |
README.md
1# Hello LIBXSMM 2 3This example is focused on a specific functionality but may be considered as "Hello LIBXSMM". Copy and paste the example code and build it either manually and as described in our [main documentation](https://libxsmm.readthedocs.io/#hello-libxsmm) (see underneath the source code), or use GNU Make: 4 5```bash 6cd /path/to/libxsmm 7make 8 9cd /path/to/libxsmm/samples/hello 10make 11 12./hello 13``` 14 15Alternatively, one can use the Bazel build system. To further simplify, [Bazelisk](https://github.com/bazelbuild/bazelisk) is used to boot-strap [Bazel](https://bazel.build/): 16 17```bash 18cd /path/to/libxsmm/samples/hello 19bazelisk build //... 20 21./bazel-bin/hello 22``` 23 24The [C/C++ code](https://github.com/hfp/libxsmm/blob/master/samples/hello/hello.cpp) given here uses LIBXSMM in header-only form (`#include <libxsmm_source.h>`), which is in contrast to the code shown in the [main documentation](https://libxsmm.readthedocs.io/#hello-libxsmm). The [Fortran code](https://github.com/hfp/libxsmm/blob/master/samples/hello/hello.f) (`hello.f`) can be manually compiled like `gfortran -I/path/to/libxsmm/include hello.f -L/path/to/libxsmm/lib -libxsmmf -lxsmm -lxsmmnoblas -o hello` or as part of the above described invocation of GNU Make. 25 26