Ivanlh20 / multem

MULTEM is a powerful and advanced collection of C++ routines with CUDA support, designed to perform efficient and accurate multislice simulations for various TEM experiments such as HRTEM, STEM, ISTEM, ED, PED, CBED, ADF-TEM, ABF-HC, EFTEM, and EELS.
GNU General Public License v3.0
65 stars 26 forks source link

Test compile with CUDA 11.8 g++ 12.2.1 #53

Closed zezhong-zhang closed 9 months ago

zezhong-zhang commented 1 year ago

System: Manjaro CUDA: 11.8 gcc/g++: 12.2.1

It seems still has some issues using device_functions.h.

Error using mex In file included from /home/zzhang/OneDrive/compile/multem/src/gpu_fcns.cuh:35, from /home/zzhang/OneDrive/compile/multem/src/output_multislice.hpp:33, from /home/zzhang/OneDrive/compile/multem/mex_files_multem/ilc_multem.cu:26: /opt/cuda/include/device_functions.h:54:2: warning: #warning "device_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." [-Wcpp] 54 | #warning "device_functions.h is an internal header file and must not be used directly. This file will be removed in a future CUDA release. Please use cuda_runtime_api.h or cuda_runtime.h instead." | ^~~ sh: line 1: cicc: command not found

The full log error.log

zezhong-zhang commented 1 year ago

Compiled successfully with gcc-7, but not yet with gcc-11 or gcc-12.