Q1.1: How do you control the number of MPI processes on each node? MPI run programs according to hostfile, it assign programs to machine in hostfile one-by-one. machine_1 machine_1 machine_2 If we're going to run 8 copies of the program and hostfile is defined as above, program_1 & program 2 will be assigned to machine_1, program_3 will be assigned to machine_2, program_4 will be assigned to machine_1, ...etc.
11/27/2022Q1: Is speedup linear in the number of threads used? In your writeup hypothesize why this is (or is not) the case? Refer to the graph above, the speedup is almost linear. Since all threads doing same thing, using more thread will reduce the loading of threads, which decrease the execution time linearly. Speedup is also almost linear too. Q2: How do your measurements explain the speedup graph you previously created?
10/21/2022Contributed by < huang-me > 使用 atomic 與否差異 #include <stdatomic.h> int v = 0; atomic_bool v_ready = false; int bv; void *threadA() {
6/1/2022contributed by < huang-me > kecho 給定的 kecho 已使用 CMWQ,請陳述其優勢和用法 優勢: CMWQ 利用的 thread pool 的機制,大幅減少了創建 thread 的 overhead。 使用 unbounded thread 機制使得 thread 可以切換到 idle 的 CPU 上,增加系統資源的使用率。 引入 scheduling 機制資源不會被需要長時間的 thread 佔用。
4/28/2022or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up