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

IGL Threads #86

Open
gattia opened this issue Mar 20, 2024 · 0 comments
Open

IGL Threads #86

gattia opened this issue Mar 20, 2024 · 0 comments

Comments

@gattia
Copy link
Contributor

gattia commented Mar 20, 2024

Less of an issue and more of an FYI for others about threads and IGL.

I was getting tons of threads (20 per mesh processing step I did) being run which was making slurm and our IT managers grumpy. I tracked it down to identify that the signed distance function in PCU was causing the threads. Looks like there is an environment variable flag that can be set for igl that lets you limit how many threads it uses (https://github.com/libigl/libigl/releases).

Someone can add the following to their bash rc:

export IGL_NUM_THREADS="1"

This will limit IGL to using only 1 thread. I found no performance difference with point clouds of ~250k points using thread = 1 vs the default that was spawning 20+ threads.

Hopefully this helps someone else. Alternatively, there could be a way to add this into the environment variables dynamically within PCU is this is desired as a user modifiable parameter.

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

1 participant