This repository was archived by the owner on Mar 20, 2023. It is now read-only.
Commit f3d4615
authored
Improve Python wheel support (#785)
- Use new `NRN_WHEEL_BUILD` option to avoid adding a build flag that is
not widely supported. This option is added in neuronsimulator/nrn#1661.
- Make `nrnivmodl -coreneuron` fail in GPU builds if a non-NVC++ compiler is used.
- Make `nrnivmodl -coreneuron` fail in GPU builds if a different NVC++ version is used
to the one used to build the wheel.
- Move some pre-existing logic into a new `cnrn_parse_version` CMake function;
use it to get `major.minor` version numbers from CUDA and NVHPC versions that
have `.patch` parts too.
- Modify `CORENEURON_LIB_LINK_FLAGS` to use `-L$(libdir)`, which catches an
edge case when a patched `libnrniv.so` is being used so the relevant path was not
already set.
- Make the logic for translating CMake target dependencies into linker flags more verbose.
- Don't print single-MPI paths in dynamic MPI mode.
- Don't add `-I` for MPI headers in dynamic MPI builds.1 parent 2d08705 commit f3d4615
File tree
3 files changed
+63
-19
lines changed- CMake
- extra
3 files changed
+63
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
7 | 29 | | |
8 | 30 | | |
9 | 31 | | |
10 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
11 | 36 | | |
12 | 37 | | |
13 | 38 | | |
| |||
23 | 48 | | |
24 | 49 | | |
25 | 50 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 51 | + | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
| |||
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
94 | | - | |
| 106 | + | |
95 | 107 | | |
96 | 108 | | |
97 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
430 | 435 | | |
431 | 436 | | |
432 | 437 | | |
| |||
436 | 441 | | |
437 | 442 | | |
438 | 443 | | |
439 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
440 | 459 | | |
441 | 460 | | |
442 | 461 | | |
| |||
528 | 547 | | |
529 | 548 | | |
530 | 549 | | |
531 | | - | |
532 | 550 | | |
533 | 551 | | |
534 | 552 | | |
| |||
543 | 561 | | |
544 | 562 | | |
545 | 563 | | |
| 564 | + | |
| 565 | + | |
546 | 566 | | |
547 | 567 | | |
548 | 568 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
| |||
0 commit comments