Make threads a multiple of hardware concurrency

This commit is contained in:
Paul
2020-02-06 16:23:29 -06:00
parent 5361424702
commit 8e494cfce8
@@ -35,7 +35,7 @@ THE SOFTWARE.
#define LEN 64
#define SIZE LEN << 2
#define THREADS 64
#define THREADS 4
#define FILENAME "vcpy_kernel.code"
#define kernel_name "hello_world"
@@ -138,7 +138,7 @@ void run_multi_threads(uint32_t n) {
int main() {
HIPCHECK(hipInit(0));
run_multi_threads(THREADS);
run_multi_threads(THREADS * std::thread::hardware_concurrency());
passed();
}