Skip to content

Removing duplicated properties in recursive list.#9

Open
KiruyaMomochi wants to merge 1 commit into
llnl:masterfrom
KiruyaMomochi:elec_remove_dup
Open

Removing duplicated properties in recursive list.#9
KiruyaMomochi wants to merge 1 commit into
llnl:masterfrom
KiruyaMomochi:elec_remove_dup

Conversation

@KiruyaMomochi
Copy link
Copy Markdown

@KiruyaMomochi KiruyaMomochi commented Aug 15, 2021

Currently, the get_recursive_list function in elec/CMakeLists.txt may produce a list with lots of duplicate items, which may be even longer when building the project with Spack. This can lead to a significant reduction of building speed. Due to this problem, we can't build the package in a reasonable time on our cluster.

In this patch, we try to remove these duplicate items in list before setting the return value. This will make cmake stage much faster.

@jiegec
Copy link
Copy Markdown

jiegec commented Sep 22, 2021

We are experiencing the same problem in Spack: the length of runtime_includes is 60896989 (seen from gdb). The build time is too long (> 7 hours not completing).

We will try your solution to this problem and feedback if it works.

UPDATE: it works.

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

Successfully merging this pull request may close these issues.

2 participants