lavenklau / homo3d

An Optimized, Easy-to-use, Open-source GPU Solver for Large-scale Inverse Homogenization Problems
GNU General Public License v2.0
45 stars 14 forks source link

Assistance Required for generating, configuring, and building the Homo3D Project #8

Open mahdimirzajani opened 1 month ago

mahdimirzajani commented 1 month ago

I hope this message finds you well. I am currently working with your open-source project, Homo3D. I appreciate the effort and dedication you have put into creating this valuable tool for solving inverse homogenization problems. However, I have encountered several challenges during the process of generating, configuring, and building the project. I initially used the Ninja builder and Visual Studio compiler, which resulted in successful generation and configuration, but numerous build errors occurred. I Attempted different combinations of compilers and builders (Ninja, Unix Makefiles, Visual Studio, GNU) but several error happened in generating and configuring. When attempting to use Unix Makefiles and other c and c++ compiler, I encountered the error with detecting CUDA compiler ABI info in generation. Despite these efforts, I have been unable to successfully build the project. I would greatly appreciate any guidance or recommendations you can provide to resolve these issues.Thank you for your time and assistance. I look forward to your response. Best regards,

lavenklau commented 1 month ago

Please provide more information, e.g., the platfrom, compiler version, cuda version and error message so that I can reproduce it.

mahdimirzajani commented 1 month ago

error.txt

Thank you for your prompt response. I appreciate your willingness to assist me with the issues I am facing. I have attached a detailed log file (error.txt) which includes all the errors encountered during the build process. Below is the detailed information you requested: Platform: Windows 10 Compiler Version: Visual Studio 2022 Developer Command Prompt v17.10.3 Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33811 for x64 "The C compiler identification is MSVC 19.40.33811.0 The CXX compiler identification is MSVC 19.40.33811.0" CMake version: 3.29.3 CUDA : NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2024 NVIDIA Corporation Cuda compilation tools, release 12.4, V12.4.99 Build cuda_12.4.r12.4/compiler.33961263_0 The CUDA compiler identification is NVIDIA 12.4.99 GPU: NVIDIA GeForce GTX 1050

I hope this information helps in reproducing the issues and identifying the cause. Any guidance or recommendations you can provide to resolve these issues would be greatly appreciated. Thank you for your time and assistance. Best regards,

lavenklau commented 1 month ago

It seems that cmake finds tbb from your oneAPI package, not from the conda environment. One possible workaround is manually open the generated msvc project and append the path of 'tbb12.lib' to the Additional Library Directories item.