• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..13-Oct-2021-

BUILDH A D13-Oct-2021102 87

MakefileH A D13-Oct-20214.4 KiB12097

README.mdH A D13-Oct-20211.2 KiB2616

WORKSPACEH A D13-Oct-202159 54

hello.cH A D13-Oct-20211.7 KiB3319

hello.cppH A D13-Oct-20211.7 KiB3217

hello.fH A D13-Oct-20212.1 KiB4631

hello.vcxprojH A D13-Oct-202121.9 KiB389389

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