1. 代碼報錯
  2. OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
  3. OMP: Hint This means that multiple copies of the OpenMP runtime have been linked intograms link. cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, eg by avoiding static linking of the OpenMP runtime in any library。 variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/support/ducts
複製代碼
文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

近從新調試一段pytorch 程式碼,以前的伺服器上完全沒問題,但換了一台機器,重新安裝了新版本的cuda, anaconda ,pytorch 等,以前的程式碼出現各種版本不適合的問題。
問題:
現在說說這個問題。運行pytorch 時出現的情況如下:

  1. RuntimeError:
  2.         An attempt has been made to start a new process before the
  3.         current process has finished its bootstrapping phase.
  4.  
  5.         This probably means that you are not using fork to start your
  6.         child processes and you have forgotten to use the proper idiom
  7.         in the main module:
  8.  
  9.             if __name__ == '__main__':
  10.                 freeze_support()
  11.                 ...
  12.  
  13.         The "freeze_support()" line can be omitted if the program
  14.         is not going to be frozen to produce an executable.
文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

先到 pytorch 官網 對應一下CUDA版本及指令
YOLOv8 pytorch環境建置與教學 - Win10YOLOv8 pytorch環境建置與教學 - Win10
我的環境是:

  • Python 3.10
  • Nvidia driver 522.25
  • Cuda 11.7
  • Conda
  • Cudnn 8.7

安裝方法可參閱此篇文章 :Win10用 Anaconda 建 3070系列的 Tensorflow 深度學習環境


先下載CUDA 11.7 載點

下載安裝好以後,把CUDNN 三個目錄COPY到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7下


到PyCharm 終端機下指令先建一個虛擬環境

文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

環境 WIN10 RTX 3070 TI

配置一覽:

文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

用GPU RUN PYTHON時,
出現錯誤訊息
 

  1. failed to create cublas handle: cublas_status_alloc_failed
文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

停止及關閉firewalld
1. To begin with, you should disable Firewalld and make sure it does not start at boot again.

 

  1. systemctl stop firewalld
  2. systemctl disable firewalld
文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

最近因為CENTOS 7 服務會莫名的關閉,查了發現是KENERL問題,所以決定升到CENTOS 8-9,

我的INTEL雙網網卡 來當做家裡的firewall, 於是安裝了CENTOS 8 - 9, 並用pppoe 來連接中華電信的Router, 並且寫了一些iptables 的rules 來當作firewall 及NAT router.
但是覺得有問題, 有時連不出去. 現象是這樣的:


但是在NAT 後面的電腦,GOOGLE PTT網站 連線都很ok, , 只要碰上yahoo跟遊戲 的連線, 就連不上, ftp 也ok.


這問題擺了很久都沒去理會. 今天終於有空好好的來追問題的源頭. 發現好像是跟pppoe 有關.
問了小洲大大才發現

MTU
MTU (Maximum Transmission Unit) 是指網路介面卡上最大傳輸單元, 其單位為bytes. 在大多數的Ehternet 上, 這個值通常是1500. 因為如此, 在PPPoE 中, 因為還有header問題, 所以這個值就得設的比較小, 通常為1492 (= 1500 – 2(PPP)- 6(PPPoE))

MSS
MSS (Maximum segment size) 是TCP protocol 中的一個參數, 是指TCP 每次資料傳輸分段的最大值. 當TCP 在handshake 時, 雙方host 會查看MSS 這個欄位, 來決定雙方資料傳輸分段的大小. 在Ethernet 中MSS 值最大為1460 bytes.
原因是在Ethernet 中 MTU = IP Header + TCP Header + MSS + FCS.
(FCS 是指Frame check sequence, 通常採用CRC演算法, 在Ethernet 中, 它佔4 bytes.)
但是在PPPoE 中MTU 為1492, 所以其MSS 只能設為1452.

問題所在
當CENTOS 8 在開機後, 啟動了ppp0, 其內定將MTU 設為1492, 並且會自動設定一條iptable rule,



因為在NAT 後面的電腦, 並不知道前端的router 是用什麼介面連到internet, 所以它和遠端的電腦建立TCP 連線時, 有可能會將MSS 設為1460. 但是由於firewall 或router 端使用PPPoE連線, 若MSS 大於1452會造成資料爆掉, 所以上述的iptable rule 強制偷改其MSS值(在IPV4下 = PMTU – 40, 在IPV6下 = PMTU – 60). 因此MSS 就會被改成1452, 這樣子就不會爆掉了.

但是我自己寫的iptable rule script 中, 一開始就用了下列設定, 清除了原來的所有設定

 

  1. # 清除所有規則
  2. iptables -F -t filter
  3. iptables -X -t filter
  4. iptables -Z -t filter
  5. iptables -F -t mangle
  6. iptables -X -t mangle
  7. iptables -Z -t mangle
  8. iptables -F -t nat
  9. iptables -X -t nat
  10. iptables -Z -t nat
文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

用nmcli可以成功建立pppoe連線
: (在下列例子中,我將pppoe連線命名為ppp0,刻意設定為需要時才手動進行撥接,
: 網卡的裝置名稱為對外enp1s0f0, 對內enp1s0f1)
1. 安裝模組 NetworkManager-ppp ppp
enp1s0f0設定IP:192.168.0.254
enp1s0f0設定IP:192.168.1.254

1.安裝模組

  1. dnf install NetworkManager-ppp -y
  2. dnf install ppp -y
文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

1.png

 

文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()

進入CPANEL ROOT後台

選取Transfer Tool
Remote Server Address:
輸入原主機的IP


選取 ROOT帳號


輸入密碼


在下一步設定即可

 

文章標籤

NetYea 網頁設計 發表在 痞客邦 留言(0) 人氣()