Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox: OpenCL in Nvidia Driver #4

Open
morris821028 opened this issue May 2, 2016 · 2 comments
Open

Sandbox: OpenCL in Nvidia Driver #4

morris821028 opened this issue May 2, 2016 · 2 comments

Comments

@morris821028
Copy link
Member

morris821028 commented May 2, 2016

繼伺服器掛掉之後,把之前的資料救回來,在重灌的環境下,並重新安裝 Nvidia Driver,執行效能完全一致。

在 sandbox 上運作則是完全失靈,只好 strace 一次沒有結果,-f 遞迴展開所有 system call,繞了半圈才發現 nvidia-compiler.so 繞了好幾個目錄都找不到,根據版本號命名果然兇狠。

至於為什麼外部可以直接運行 ...

$ sudo ln -s ./x86_64-linux-gnu/libnvidia-compiler.so.352.79  ./x86_64-linux-gnu/libnvidia-compiler.so
@morris821028
Copy link
Member Author

當運行其他裝置的情況下 (如 GPU, MIC),需要使用 strace -f ./sandbox 10 16777216 ./main 查閱調用情況,特別注意到 strace 只開放給有 root 權限的情況下使用。

  • 若發生輸出導向失敗 sudo strace -f ./sandbox ... 2>error.log,這表示沒有權限寫入到指定位置,其原因在於 sudo 之後會回到一般權限。

@morris821028
Copy link
Member Author

strace 輸出 log 檔中,若出現 Too many levels of symbolic links,表示之前使用 ln -s ./pathA ./pathB 相對路徑,改用絕對路徑便能解決此問題。

@morris821028 morris821028 changed the title OpenCL sandbox OpenCL Sandbox in Nvidia Driver Feb 20, 2017
@morris821028 morris821028 changed the title OpenCL Sandbox in Nvidia Driver Sandbox: OpenCL in Nvidia Driver Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant