Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive Recursion Error with RAJA #91

Open
rchen20 opened this issue Dec 1, 2021 · 3 comments
Open

Excessive Recursion Error with RAJA #91

rchen20 opened this issue Dec 1, 2021 · 3 comments

Comments

@rchen20
Copy link
Member

rchen20 commented Dec 1, 2021

When there are too many combinations of templated test cases in RAJA, there is an excessive recursion error with gcc/8.3.1 + cuda/10.1.243. Occurs when there are 3 * 3 * 3 * 2 combinations of template parameters. LLNL/RAJA#1165

Make verbose line -
cd /usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/build_lc_blueos-nvcc10.1.243-sm_70-gcc8.3.1/test/unit/workgroup && /usr/tce/packages/cuda/cuda-10.1.243/bin/nvcc -ccbin=/usr/tce/packages/gcc/gcc-8.3.1/bin/g++ -DGTEST_HAS_DEATH_TEST=1 -I/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/test/include -I/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/test/unit/workgroup/tests -I/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest -I/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/include -I/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/build_lc_blueos-nvcc10.1.243-sm_70-gcc8.3.1/include -I/usr/tce/packages/cuda/cuda-10.1.243/include -I/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/tpl/camp/include -isystem=/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/include -isystem=/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/tpl/cub -Xcompiler -mno-float128 -restrict -arch sm_70 --expt-extended-lambda --expt-relaxed-constexpr -Xcudafe "--display_error_number" -O3 -Xcompiler -O3 -Xcompiler -finline-functions -Xcompiler -fopenmp -Xcompiler=-fPIE -Xcompiler=-fopenmp -std=c++14 -x cu -c /usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/build_lc_blueos-nvcc10.1.243-sm_70-gcc8.3.1/test/unit/workgroup/test-workgroup-Enqueue-Multiple-Cuda.cpp -o CMakeFiles/test-workgroup-Enqueue-Multiple-Cuda.exe.dir/test-workgroup-Enqueue-Multiple-Cuda.cpp.o

Error output -
/usr/WS1/chen59/allraja/rajaminblocks/raja_git_minblocks/tpl/camp/include/camp/camp.hpp(104): error #456: excessive recursion at instantiation of class "camp::join<camp::list<camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, int, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, int, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, int, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, int, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, int, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, int, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::ragged_array_of_objects, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, int, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, int, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, int, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::ordered, RAJA::policy::workgroup::constant_stride_array_of_objects, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, int, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, int, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, int, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<int, int *>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::array_of_pointers, long, RAJA::xargs<>, detail::ResourceAllocatorcamp::resources::v1::Cuda::std_allocator>, camp::list<RAJA::cuda_work<256UL, false>, RAJA::policy::workgroup::reverse_ordered, RAJA::policy::workgroup::

@rchen20 rchen20 mentioned this issue Dec 1, 2021
5 tasks
@rhornung67
Copy link
Member

"Sometimes"? Do we have any idea why this would not happen everytime? I have not seen this.

@rchen20
Copy link
Member Author

rchen20 commented Dec 1, 2021

"Sometimes"? Do we have any idea why this would not happen everytime? I have not seen this.

Sorry, that's a typo, it happens all the time.

@trws
Copy link
Member

trws commented Dec 1, 2021

Probably depends on which compiler at least. gcc usually has a much deeper template recursion limit than clang, but it looks like this one is landing on the straightforward recursive implementation of camp::join. Should be relatively easy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants