Skip to content

If the number of threads is greater than the number of sites, bad behavior ensues #17

@bjoo

Description

@bjoo

Running the t_mesplq with the default local volume (4x2x2x4) produces non-constant results when run repeatedly. The problem goes away if the number if threads is less than the number of sites.

Several fixes are possible:
Simplest: fix qdp_dispatch: only threads with ID < numSites will dispatch
Longer Term: Since OpenMP is now the norm, the dispatch function could be recoded:
instead of low/high site indices, the loops cold be hoisted out of the dispatched functions
into the dispatcher with an OMP for

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions