Re: [deal.II] Re: Regarding tbb error

2023-04-29 Thread Jau-Uei Chen
Dear all,

I found that the issue can be resolved by module unload "tbb/2021.6.0" (The 
tbb I thought will be used). It seems that candi is trying to build the 
tbb/2018U2 when the flag "DEAL_II_FORCE_BUNDLED_TBB" is set to be on (I saw 
that in build directory there is a directory called "bundled" where I can 
find "tbb-2018_U2").

Best Regards,
Jau-Uei Chen

mafe...@gmail.com 在 2023年4月28日 星期五下午3:08:33 [UTC-5] 的信中寫道:

> Interestingly, the cmake configuration also complains about the following 
> unused variable. This variable is now named DEAL_II_FORCE_BUNDLED_TBB. 
> Can someone of the candi developers have a look?
>
> CMake Warning:
>   Manually-specified variables were not used by the project:
> DEAL_II_FORCE_BUNDLED_THREADS
>
> On Friday, April 28, 2023 at 2:05:36 PM UTC-6 Marc Fehling wrote:
>
>> Hello Jau-Uei Chen,
>>
>> the configuration did not pick up the TBB version you provided, and 
>> instead uses the version that comes bundled with deal.II (i.e. tbb 2018U2). 
>> However, the linker still tries to link against tbb 2021.6.0. Something got 
>> mixed up in the configuration phase.
>>
>> Marc
>>
>>
>> -- Include 
>> /org/groups/ceo/chenju/dealii/install/tmp/unpack/deal.II-v9.4.0/cmake/configure/configure_10_tbb.cmake
>> -- TBB_LIBRARY not found! The call was:
>> -- FIND_LIBRARY(TBB_LIBRARY NAMES tbb HINTS PATH_SUFFIXES lib lib64 
>> lib)
>> -- TBB_DEBUG_LIBRARY not found! The call was:
>> -- FIND_LIBRARY(TBB_DEBUG_LIBRARY NAMES tbb_debug HINTS PATH_SUFFIXES 
>> lib lib64 lib)
>> -- TBB_INCLUDE_DIR not found! The call was:
>> -- FIND_PATH(TBB_INCLUDE_DIR tbb/tbb_stddef.h HINTS PATH_SUFFIXES 
>> include include/tbb tbb)
>> -- Found TBB_INCLUDE_DIR
>> --   TBB_VERSION: 2021.6
>> --   TBB_LIBRARIES: *** Required variable "TBB_LIBRARY" set to NOTFOUND 
>> ***
>> -- Could NOT find TBB
>> -- DEAL_II_WITH_TBB has unmet external dependencies.
>> -- Performing Test DEAL_II_HAVE_FLAG_Wno_parentheses
>> -- Performing Test DEAL_II_HAVE_FLAG_Wno_parentheses - Success
>> -- DEAL_II_WITH_TBB successfully set up with bundled packages.
>>
>>
>> [ 50%] Linking CXX executable step-6
>> /usr/bin/ld.bfd: CMakeFiles/step-6.dir/step-6.cc.o: in function 
>> `tbb::detail::d1::wait_context::add_reference(long)':
>> /opt/apps/sysnet/intel/oneapi/2022.2/tbb/2021.6.0/include/oneapi/tbb/detail/_task.h:114:
>>  
>> undefined reference to `tbb::detail::r1::notify_waiters(unsigned long)'
>> On Friday, April 28, 2023 at 1:28:04 PM UTC-6 jau...@gmail.com wrote:
>>
>>> Dear all,
>>>
>>> I just encounter a similar issue and am wondering if there is a solution 
>>> to fix it.
>>>
>>> Please see the attachment for the error message I got. This message is 
>>> from dealii 9.4.0 (I also tried dealii 9.4.2 and got a similar message.). 
>>>
>>> During the installation of dealii 9.4.0, no issue is showing up though 
>>> (The installation is carried out by using candi. I also attach the log 
>>> here.). The tbb I used is "tbb/2021.6.0" (Intel(R) oneAPI Threading 
>>> Building Blocks for intel64).
>>>
>>> Any comment or suggestion is greatly appreciated.
>>>
>>> Best Regards,
>>> Jau-Uei Chen
>>>
>>> Deepika Kushwah 在 2022年9月19日 星期一晚上11:08:55 [UTC-5] 的信中寫道:
>>>
 Thanks for the reply.


 I am using the latest version of dealii 9.4.0.
 With this version I am getting the error as mentioned in the previous 
 email.




 Thanks & Regards
 Deepika

 On Tue, Sep 20, 2022 at 2:48 AM Marc Fehling  wrote:

> Hello Deepika,
>
> which version of deal.II are you using?
>
> From your screenshots, it looks like you are using Intel oneAPI TBB. 
> We started to support oneAPI versions with deal.II 9.4.0. Could you try 
> our 
> latest release?
>
> Marc
>
> On Sunday, September 18, 2022 at 6:18:51 AM UTC-6 
> deepika...@iitgoa.ac.in wrote:
>
>> Hello Everyone,
>>
>> I am a beginner in deal.II.
>> While running any tutorial on centos7 I am getting the following 
>> errors (please see attachments).
>>
>> How to proceed?
>>
>>
>> Thanks & Regards
>> Deepika
>>
> -- 
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see 
> https://groups.google.com/d/forum/dealii?hl=en
> --- 
> You received this message because you are subscribed to the Google 
> Groups "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to dealii+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/e0f889c4-38b1-403f-bfb8-58ddb01a70d0n%40googlegroups.com
>  
> 
> .
>

 
 **
 This e-mail 

[deal.II] Problem compiling deal.II with CUDA

2023-04-29 Thread Sean Johnson
Hey everyone,

Sorry I have been working on this problem for a few day. I believe the 
problem is with the mating of deal.II and CUDA because after installing 
CUDA it passed all the post installation tests. The error mentions the 
atomicAdd() function for doubles which is only for compute capability 6.x+ 
according to CUDA and my gpu is 5.0 but deal.II says it only needs compute 
capability of 3.2+ so I figure the problem isn't that simple. Below is the 
error code and attached are the log files.

Thanks for any help ahead of time! And sorry if there is anything I missed 
to include as this is my first post on here. I will correct it as soon as I 
can when notified. Thank you again!

Building CUDA object 
source/lac/CMakeFiles/obj_lac_release.dir/cuda_kernels.cu.o
nvcc warning : The 'compute_35', 'compute_37', 'compute_50', 'sm_35', 
'sm_37' and 'sm_50' architectures are deprecated, and may be removed in a 
future release (Use -Wno-deprecated-gpu-targets to suppress warning).
/home/sjohnson/Downloads/dealii-9.4.1/include/deal.II/lac/cuda_atomic.h(54): 
error: no instance of overloaded function "atomicAdd" matches the argument 
list
argument types are: (double *, double)

/home/sjohnson/Downloads/dealii-9.4.1/include/deal.II/lac/cuda_kernels.templates.h(96):
 
error: no instance of overloaded function "atomicAdd" matches the argument 
list
argument types are: (double *, const double)
  detected during instantiation of "Number 
dealii::LinearAlgebra::CUDAWrappers::kernel::ElemSum::atomic_op(Number 
*, Number) [with Number=double]" 
/home/sjohnson/Downloads/dealii-9.4.1/source/lac/cuda_kernels.cu(160): here

/home/sjohnson/Downloads/dealii-9.4.1/include/deal.II/lac/cuda_kernels.templates.h(132):
 
error: no instance of overloaded function "atomicAdd" matches the argument 
list
argument types are: (double *, const double)
  detected during instantiation of "Number 
dealii::LinearAlgebra::CUDAWrappers::kernel::L1Norm::atomic_op(Number 
*, Number) [with Number=double]" 
/home/sjohnson/Downloads/dealii-9.4.1/source/lac/cuda_kernels.cu(161): here

/home/sjohnson/Downloads/dealii-9.4.1/include/deal.II/lac/cuda_kernels.templates.h(272):
 
error: no instance of overloaded function "atomicAdd" matches the argument 
list
argument types are: (double *, const double)
  detected during instantiation of "Number 
dealii::LinearAlgebra::CUDAWrappers::kernel::DotProduct::atomic_op(Number
 
*, Number) [with Number=double]" 
/home/sjohnson/Downloads/dealii-9.4.1/source/lac/cuda_kernels.cu(175): here

4 errors detected in the compilation of 
"/home/sjohnson/Downloads/dealii-9.4.1/source/lac/cuda_kernels.cu".
make[2]: *** [source/lac/CMakeFiles/obj_lac_release.dir/build.make:583: 
source/lac/CMakeFiles/obj_lac_release.dir/cuda_kernels.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3790: 
source/lac/CMakeFiles/obj_lac_release.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/eb4eb66d-b139-4d5e-b33b-859e9838a119n%40googlegroups.com.
###
#
#  deal.II configuration:
#CMAKE_BUILD_TYPE:   DebugRelease
#BUILD_SHARED_LIBS:  ON
#CMAKE_INSTALL_PREFIX:   /home/sjohnson
#CMAKE_SOURCE_DIR:   /home/sjohnson/Downloads/dealii-9.4.1
#(version 9.4.1)
#CMAKE_BINARY_DIR:   /home/sjohnson/Downloads/dealii-9.4.1/build
#CMAKE_CXX_COMPILER: GNU 9.4.0 on platform Linux x86_64
#/usr/bin/c++
#C++ language standard:  C++14
#CMAKE_C_COMPILER:   /usr/bin/cc
#CMAKE_Fortran_COMPILER: /usr/bin/gfortran
#CMAKE_GENERATOR:Unix Makefiles
#
#  Base configuration (prior to feature configuration):
#DEAL_II_CXX_FLAGS:-fPIC -Wall -Wextra -Wmissing-braces -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wsuggest-override -Wswitch -Wsynth -Wwrite-strings -Wno-placement-new -Wno-deprecated-declarations -Wno-literal-suffix -Wno-psabi -Wno-class-memaccess -fopenmp-simd
#DEAL_II_CXX_FLAGS_RELEASE:-O2 -funroll-loops -funroll-all-loops -fstrict-aliasing -Wno-unused-local-typedefs
#DEAL_II_CXX_FLAGS_DEBUG:  -O0 -ggdb -Wa,--compress-debug-sections
#DEAL_II_LINKER_FLAGS: -rdynamic -fuse-ld=gold -lpthread -fopenmp
#DEAL_II_LINKER_FLAGS_RELEASE: 
#DEAL_II_LINKER_FLAGS_DEBUG:   -ggdb
#DEAL_II_DEFINITIONS:  
#DEAL_II_DEFINITIONS_RELEASE:  NDEBUG
#DEAL_II_DEFINITIONS_DEBUG: