Commit a215cc6
committed
build: add a submodule for CX10 handling just the modules
The CX10 module setup is currently very complicated. The module is
built twice - once via bazel and incorporated into the TensorFlow
library. The second build is built via Swift for the modules to import
the interfaces into Swift. In order to build the swift bindings via
SPM, we need to extract the sources. However, we cannot reorganise the
CX10 subdirectory to enable SPM to filter out just the modules. As a
result, we create a `CX10Modules` module that is only built when
building with SPM. CMake builds will ignore this directory, building
the modules from the CX10 directory directly as it can handle the
subdirectory layout.1 parent e03ad18 commit a215cc6
File tree
6 files changed
+23
-0
lines changed- Sources/CX10Modules
- include
6 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments