學號:311551173 姓名:黃牧恩 Q1 What are the pros and cons of the three methods? Give an assumption about their performances. Method 1 Pros: 每一個thread只需要處理一個pixel Cons: 有些計算量小的thread只被使用一下,只有部分的thread會因為計算量較大而被使用較久,導致整體thread utilization較低
12/13/2022Q1.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/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