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

Can I adjust the CPU core number in Tiramisu compiler? #341

Closed
SubjectNoi opened this issue Apr 7, 2021 · 1 comment
Closed

Can I adjust the CPU core number in Tiramisu compiler? #341

SubjectNoi opened this issue Apr 7, 2021 · 1 comment

Comments

@SubjectNoi
Copy link

Env: Ubuntu 18.04, Tiramisu built from source, CPU exec.
Now I wonder can I adjust the core number used by my function?

        // ...

	C.parallelize(i); // Here, is there some API that can change the parallelism of this function? 
                          // So that I can limit the cpu core used by this function
	
	C.vectorize(j, 32);

	C.after(C_init, j1);

        // ...
@SubjectNoi
Copy link
Author

Solved, using export HL_NUM_THREADS=4 to adjust the Halide JIT compiler CPU thread limit.

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