LLNL / LEAP

comprehensive library of 3D transmission Computed Tomography (CT) algorithms with Python and C++ APIs, a PyQt GUI, and fully integrated with PyTorch
https://leapct.readthedocs.io
MIT License
120 stars 12 forks source link

Could NOT find OpenMP_CUDA (missing: OpenMP_CUDA_FLAGS OpenMP_CUDA_LIB_NAMES) #124

Closed JosephBend closed 4 weeks ago

JosephBend commented 1 month ago

Hi, I am trying to install LEAP without PyTorch. I renamed the files and installed all the required packages: cmake 3.31.0-rc2, cuda 12.6 V12.6.77, VS 2022 (instructions ask for 2019) .

I get this error when trying to install LEAP1.23 -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.6 (found suitable version "12.6", minimum required is "11.7") -- Found OpenMP_C: -openmp (found version "2.0") -- Found OpenMP_CXX: -openmp (found version "2.0") CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message): Could NOT find OpenMP_CUDA (missing: OpenMP_CUDA_FLAGS OpenMP_CUDA_LIB_NAMES)

Do you have ideas how to solve this problem? Thank you,

Joseph

hws203 commented 1 month ago

You can set your own openmp_cuda path at your cmakelists.txt file.

=============example=========== message(STATUS "set compipler") set(OPENMP_LIBRARIES "/usr/local/Cellar/llvm/5.0.1/lib") set(OPENMP_INCLUDES "/usr/local/Cellar/llvm/5.0.1/include")

set(OPENMP_LIBRARIES "/usr/local/opt/llvm/lib") link_directories(${OPENMP_LIBRARIES})

kylechampley commented 1 month ago

Thanks for the suggestion @hws203 !!

Joseph, please try that and let us know if it resolves the issue.

TiouTiouFang commented 1 month ago

Hi,In windows system,how to set this ? Thank you! @hws203

JosephBend commented 1 month ago

Yes, Windows 10.

Thank you,

Joseph

From: TiouTiouFang @.> Sent: Sunday, October 27, 2024 7:05 AM To: LLNL/LEAP @.> Cc: Bendahan, Joseph @.>; Author @.> Subject: Re: [LLNL/LEAP] Could NOT find OpenMP_CUDA (missing: OpenMP_CUDA_FLAGS OpenMP_CUDA_LIB_NAMES) (Issue #124)

Hi,In windows system,how to set this ? Thank you!

— Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/LLNL/LEAP/issues/124*issuecomment-2440036794__;Iw!!G2kpM7uM-TzIFchu!1cjgtAE_t1vnhbC2YMYWLCLawi8LTQASODqSofrcqZK1yOnSk0uRXaZtnar-KGZgq0Nh-zGneyI8Pv8LME3kFze5ud8$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/BMNX2VL7GZMLZ4FSYVM2RZLZ5TXHBAVCNFSM6AAAAABQUGPOGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGAZTMNZZGQ__;!!G2kpM7uM-TzIFchu!1cjgtAE_t1vnhbC2YMYWLCLawi8LTQASODqSofrcqZK1yOnSk0uRXaZtnar-KGZgq0Nh-zGneyI8Pv8LME3kkY51WO8$. You are receiving this because you authored the thread.Message ID: @.**@.>>

jsmaltz commented 1 month ago

Which version of cmake are you using? I had this issue with cmake 3.31, but switching back to 3.18.4 resolved it.

JosephBend commented 1 month ago

3.31.0.rc2

3.18.4 is a very old release. Also, the website states 3.23 or newer. I will try 3.23.

Thank you!

Joseph

From: jsmaltz @.> Sent: Sunday, October 27, 2024 11:07 AM To: LLNL/LEAP @.> Cc: Bendahan, Joseph @.>; Author @.> Subject: Re: [LLNL/LEAP] Could NOT find OpenMP_CUDA (missing: OpenMP_CUDA_FLAGS OpenMP_CUDA_LIB_NAMES) (Issue #124)

Which version of cmake are you using? I had this issue with cmake 3.31, but switching back to 3.18.4 resolved it.

— Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/LLNL/LEAP/issues/124*issuecomment-2440121029__;Iw!!G2kpM7uM-TzIFchu!1tqfWrJIFq3p7cqDbl6CdFz0fcYQXT8Gfxjfm1Na3uQnEgpx5qgwMHNeOz4_wb8oQDzV-yAeGOxnrdc8QocAgBg2ROw$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/BMNX2VMTHWJQC4JRHR4VGS3Z5UTTPAVCNFSM6AAAAABQUGPOGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGEZDCMBSHE__;!!G2kpM7uM-TzIFchu!1tqfWrJIFq3p7cqDbl6CdFz0fcYQXT8Gfxjfm1Na3uQnEgpx5qgwMHNeOz4_wb8oQDzV-yAeGOxnrdc8QocAx0Hh_AQ$. You are receiving this because you authored the thread.Message ID: @.**@.>>

JosephBend commented 1 month ago

I was able to build Leap with cmake 3.23 .3. I will try to test it later.

Admin: I recommend stating in the documentation to use cmake 3.23.3, which is the version that was tested. Newer versions may work too.

Thank you, jsmaltz!

From: jsmaltz @.> Sent: Sunday, October 27, 2024 11:07 AM To: LLNL/LEAP @.> Cc: Bendahan, Joseph @.>; Author @.> Subject: Re: [LLNL/LEAP] Could NOT find OpenMP_CUDA (missing: OpenMP_CUDA_FLAGS OpenMP_CUDA_LIB_NAMES) (Issue #124)

Which version of cmake are you using? I had this issue with cmake 3.31, but switching back to 3.18.4 resolved it.

— Reply to this email directly, view it on GitHubhttps://urldefense.us/v3/__https:/github.com/LLNL/LEAP/issues/124*issuecomment-2440121029__;Iw!!G2kpM7uM-TzIFchu!1tqfWrJIFq3p7cqDbl6CdFz0fcYQXT8Gfxjfm1Na3uQnEgpx5qgwMHNeOz4_wb8oQDzV-yAeGOxnrdc8QocAgBg2ROw$, or unsubscribehttps://urldefense.us/v3/__https:/github.com/notifications/unsubscribe-auth/BMNX2VMTHWJQC4JRHR4VGS3Z5UTTPAVCNFSM6AAAAABQUGPOGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBQGEZDCMBSHE__;!!G2kpM7uM-TzIFchu!1tqfWrJIFq3p7cqDbl6CdFz0fcYQXT8Gfxjfm1Na3uQnEgpx5qgwMHNeOz4_wb8oQDzV-yAeGOxnrdc8QocAx0Hh_AQ$. You are receiving this because you authored the thread.Message ID: @.**@.>>

kylechampley commented 4 weeks ago

Thanks everyone for their help. Joseph, I updated the documentation to say 3.23.3.

Since you were able to compile, I am going to close this issue, but feel free to reopen it or another issue if something else comes up.