Skip to content

Matrix assembly and CPU single core execution #1753

Answered by MarcelKoch
Ben90001 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Ben90001, thanks for your interest in comparing Ginkgo to Dune-ISTL. I will try to answer your questions one-by-one:

  1. Our CPU kernels are indeed lacking optimizations compared to our GPU kernels. Honestly, I would not be surprised if ISTL is faster than Ginkgo on CPUs. We would welcome however any contributions to our CPU kernels, if this is something you want to pursue.
  2. If you want to run Ginkgo only on a single CPU core, then yes, the ReferenceExecutor would be the best option. If you want to run on the full CPU, then you would need to use the OmpExecutor. You can also use the OmpExecutor to run on a single core by setting the environment variable OMP_NUM_THREADS=1. I would assume t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@upsj
Comment options

upsj Dec 12, 2024
Maintainer

@Ben90001
Comment options

@upsj
Comment options

upsj Dec 12, 2024
Maintainer

Answer selected by Ben90001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants