Commit f6ac6a3
peng.li24
ci: fix Ubuntu 24.04 — remove libgomp1-dev (non-existent), make OpenMP optional
libgomp1-dev does not exist as a separate package on Ubuntu 24.04;
OpenMP runtime (libgomp1) and headers (omp.h) are bundled with GCC.
- ci.yml: remove libgomp1 + libgomp1-dev from apt-get install
- CMakeLists.txt: find_package(OpenMP) without REQUIRED; conditional
target_link_libraries so build succeeds even without OpenMP
- einsum.h already guards #include <omp.h> and #pragma omp behind #ifdef _OPENMP1 parent 4ff144b commit f6ac6a3
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
0 commit comments