|
2 | 2 | # GraphBLAS/CMakeLists.txt: cmake script for GraphBLAS |
3 | 3 | #------------------------------------------------------------------------------- |
4 | 4 |
|
5 | | -# SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2023, All Rights Reserved. |
| 5 | +# SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2025, All Rights Reserved. |
6 | 6 | # SPDX-License-Identifier: Apache-2.0 |
7 | 7 |
|
8 | 8 | # See the User Guide for details on how to compile SuiteSparse:GraphBLAS. |
@@ -41,7 +41,7 @@ if ( NOT BUILD_SHARED_LIBS ) |
41 | 41 | endif ( ) |
42 | 42 |
|
43 | 43 | # CUDA is under development for now, and not deployed in production: |
44 | | - set ( GRAPHBLAS_USE_CUDA OFF ) |
| 44 | + set ( GRAPHBLAS_USE_CUDA OFF ) # turn CUDA off in production |
45 | 45 | # set ( GRAPHBLAS_USE_CUDA ON ) # use this for CUDA development only |
46 | 46 |
|
47 | 47 | include ( SuiteSparsePolicy ) |
@@ -517,65 +517,42 @@ if ( SUITESPARSE_DEMOS ) |
517 | 517 | # Demo programs |
518 | 518 | #--------------------------------------------------------------------------- |
519 | 519 |
|
520 | | - add_executable ( openmp_demo "Demo/Program/openmp_demo.c" ) |
521 | | - add_executable ( openmp2_demo "Demo/Program/openmp2_demo.c" ) |
522 | 520 | add_executable ( complex_demo "Demo/Program/complex_demo.c" ) |
523 | | - add_executable ( kron_demo "Demo/Program/kron_demo.c" ) |
524 | 521 | add_executable ( simple_demo "Demo/Program/simple_demo.c" ) |
525 | 522 | add_executable ( wildtype_demo "Demo/Program/wildtype_demo.c" ) |
526 | | - add_executable ( reduce_demo "Demo/Program/reduce_demo.c" ) |
527 | | - add_executable ( import_demo "Demo/Program/import_demo.c" ) |
528 | 523 | add_executable ( wathen_demo "Demo/Program/wathen_demo.c" ) |
529 | 524 | add_executable ( context_demo "Demo/Program/context_demo.c" ) |
530 | 525 | add_executable ( gauss_demo "Demo/Program/gauss_demo.c" ) |
531 | 526 | add_executable ( grow_demo "Demo/Program/grow_demo.c" ) |
532 | 527 |
|
533 | 528 | # Libraries required for Demo programs |
534 | 529 | if ( BUILD_SHARED_LIBS ) |
535 | | - target_link_libraries ( openmp_demo PUBLIC GraphBLAS ) |
536 | | - target_link_libraries ( openmp2_demo PUBLIC GraphBLAS ) |
537 | 530 | target_link_libraries ( complex_demo PUBLIC GraphBLAS ) |
538 | | - target_link_libraries ( kron_demo PUBLIC GraphBLAS ) |
539 | 531 | target_link_libraries ( simple_demo PUBLIC GraphBLAS ) |
540 | 532 | target_link_libraries ( wildtype_demo PUBLIC GraphBLAS ) |
541 | | - target_link_libraries ( reduce_demo PUBLIC GraphBLAS ) |
542 | | - target_link_libraries ( import_demo PUBLIC GraphBLAS ) |
543 | 533 | target_link_libraries ( wathen_demo PUBLIC GraphBLAS ) |
544 | 534 | target_link_libraries ( context_demo PUBLIC GraphBLAS ) |
545 | 535 | target_link_libraries ( gauss_demo PUBLIC GraphBLAS ) |
546 | 536 | target_link_libraries ( grow_demo PUBLIC GraphBLAS ) |
547 | 537 | else ( ) |
548 | | - target_link_libraries ( openmp_demo PUBLIC GraphBLAS_static ) |
549 | | - target_link_libraries ( openmp2_demo PUBLIC GraphBLAS_static ) |
550 | 538 | target_link_libraries ( complex_demo PUBLIC GraphBLAS_static ) |
551 | | - target_link_libraries ( kron_demo PUBLIC GraphBLAS_static ) |
552 | 539 | target_link_libraries ( simple_demo PUBLIC GraphBLAS_static ) |
553 | 540 | target_link_libraries ( wildtype_demo PUBLIC GraphBLAS_static ) |
554 | | - target_link_libraries ( reduce_demo PUBLIC GraphBLAS_static ) |
555 | | - target_link_libraries ( import_demo PUBLIC GraphBLAS_static ) |
556 | 541 | target_link_libraries ( wathen_demo PUBLIC GraphBLAS_static ) |
557 | 542 | target_link_libraries ( context_demo PUBLIC GraphBLAS_static ) |
558 | 543 | target_link_libraries ( gauss_demo PUBLIC GraphBLAS_static ) |
559 | 544 | target_link_libraries ( grow_demo PUBLIC GraphBLAS_static ) |
560 | 545 | endif ( ) |
561 | 546 |
|
562 | | - target_link_libraries ( openmp_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
563 | | - target_link_libraries ( openmp2_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
564 | 547 | target_link_libraries ( complex_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
565 | | - target_link_libraries ( kron_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
566 | 548 | target_link_libraries ( simple_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
567 | 549 | target_link_libraries ( wildtype_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
568 | | - target_link_libraries ( reduce_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
569 | | - target_link_libraries ( import_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
570 | 550 | target_link_libraries ( wathen_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
571 | 551 | target_link_libraries ( context_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
572 | 552 | target_link_libraries ( gauss_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
573 | 553 | target_link_libraries ( grow_demo PUBLIC ${GB_M} ${GB_CUDA} ${GB_RMM} ) |
574 | 554 |
|
575 | 555 | if ( GRAPHBLAS_HAS_OPENMP ) |
576 | | - target_link_libraries ( openmp_demo PUBLIC OpenMP::OpenMP_C ) |
577 | | - target_link_libraries ( openmp2_demo PUBLIC OpenMP::OpenMP_C ) |
578 | | - target_link_libraries ( reduce_demo PUBLIC OpenMP::OpenMP_C ) |
579 | 556 | target_link_libraries ( wathen_demo PUBLIC OpenMP::OpenMP_C ) |
580 | 557 | target_link_libraries ( context_demo PUBLIC OpenMP::OpenMP_C ) |
581 | 558 | target_link_libraries ( grow_demo PUBLIC OpenMP::OpenMP_C ) |
|
0 commit comments