HaoYu

@HaoYuPeng

Joined on Feb 19, 2022

  • // OpenCL卷积核 __kernel void convolution(__global const float *restrict inputImage, __global float *restrict outputImage, __constant const float *restrict filter, const int filterWidth) { // 計算濾波器寬度的一半 int half_filter_width = filterWidth >> 1; // 獲取圖像的寬度和高度
     Like  Bookmark
  • Q1 In your write-up, produce a graph of speedup compared to the reference sequential implementation as a function of the number of threads used FOR VIEW 1. Is speedup linear in the number of threads used? In your writeup hypothesize why this is (or is not) the case? (You may also wish to produce a graph for VIEW 2 to help you come up with a good answer. Hint: take a careful look at the three-thread data-point.) 2023-11-06 16-56-33 的螢幕擷圖.png 2023-11-06 17-05-17 的螢幕擷圖.png Is speedup linear in the number of threads used?
     Like  Bookmark
  • contributed by < haoyu0970624763 > 測驗 1 跨平台的 ASR (arithmetic right shift) 實作 #include <stdio.h> int asr_i(signed int m, unsigned int n) { const int logical = (((int) -1) >> 1) > 0; unsigned int fixu = -(logical & (m < 0));
     Like  Bookmark
  • Emotion Recognition for Cognitive Edge Computing Using Deep Learning 當資料從 sensor / IoT 大量傳輸到處理中心時 , 主要有三個挑戰 : latency, scalability, and security latency : 將 vedio data 輸入從 sensor 送到 cloud , 在 cloud 推斷結果 , 再 return 結果 , 這樣會造成許多延遲 , 此時 data scaliing 是一個有效運用資源的方法 邊緣運算 : 從 sensor / IoT 傳遞資料上去處中心時時需要大量的頻寬以及足夠的時間 , 因此 , 在連續的資料傳輸中 , 資料應該被預處理以減輕傳遞的負擔 , 可以为用户提供更少的延迟和实时体验 Edge devices : 1 個 edge server , 一個行動通信基地台 , 數個 end devices(數據來源) edge server 位置處於 sensor / IoT gateways 附近可以減低 latency
     Like  Bookmark
  • 什麼是機器學習 機器學習就是讓機器能自動找到一個function 主要分成幾大類 回歸(Regression) 輸出是一個連續的數值,比如PM2.5數值預測。 分類(Classification) 輸出是一個離散的值。
     Like  Bookmark
  • contributed by <haoyu0970624763> 延伸問題一:程式運作原理 add_entry void add_entry(node_t **head, int new_value) { node_t **indirect = head; node_t *new_node = malloc(sizeof(node_t)); new_node->value = new_value;
     Like  Bookmark
  • contributed by < haoyu0970624763 > 作業說明 GitHub 壓力測試 apache bench 用法: ab -n 100000 -c 500 -k http://127.0.0.1:8081/
     Like  Bookmark
  • contributed by < haoyu0970624763 > 1. ASCII 編碼判斷 #include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdint.h> bool is_ascii(const char str[], size_t size) {
     Like  Bookmark
  • contributed by < haoyu0970624763 > 測驗 1 - Hamming Distance int hammingDistance(int x, int y){ return __builtin_popcount(x ^ y); } 程式原理 Hamming Distance 是要計算兩串二進位字串不同的地方有幾個,也就是計算 XOR 之後 有幾個 1
     Like  Bookmark