本家様 http://www.mrc-lmb.cam.ac.uk/kzhang/

Gctf

本家様からファイルをダウンロードします。
取得したファイルは Gctf_v1.06_and_examples.tar.gzでした。
これを/Appl/Gctfとかに展開

[root@c ~]# cd /Appl/
[root@c Appl]# gzip -cd src/Gctf_v1.06_and_examples.tar.gz | tar xf -

新たに「/Appl/Gctf_v1.06」が作成される。
実行バイナリは、

[root@c Appl]# chown -R root:root /Appl/Gctf_v1.06/
[root@c Appl]# ls -lh /Appl/Gctf_v1.06/bin/
合計 14M
-rwxrwxr-x 1 root root 1.5M  9月 29  2016 Gctf-v1.06_sm_20_cu5.0_x86_64
-rwxrwxr-x 1 root root 2.0M  9月 29  2016 Gctf-v1.06_sm_20_cu6.0_x86_64
-rwxrwxr-x 1 root root 2.0M  9月 29  2016 Gctf-v1.06_sm_20_cu6.5_x86_64
-rwxrwxr-x 1 root root 2.0M  9月 29  2016 Gctf-v1.06_sm_20_cu7.0_x86_64
-rwxrwxr-x 1 root root 2.0M  9月 29  2016 Gctf-v1.06_sm_20_cu7.5_x86_64
-rwxrwxr-x 1 root root 2.0M 10月 17  2016 Gctf-v1.06_sm_20_cu8.0_x86_64
-rwxrwxr-x 1 root root 2.0M 10月 17  2016 Gctf-v1.06_sm_30_cu8.0_x86_64
[root@c Appl]#

とcudaのバージョンとsm毎に用意されている
「sm」って何の略?単にgpu architectureのを示すもので、中身はCompute Capabilityだと思っている
nvidiaのカードとそのCompute Capabilityはhttps://developer.nvidia.com/cuda-gpushttps://en.wikipedia.org/wiki/CUDAに掲載されている

ここでは「Gctf-v1.06_sm_30_cu8.0_x86_64」を使用する。

[root@c ~]# cd /Appl/
[root@c Appl]# ln -sv Gctf_v1.06 Gctf
`Gctf' -> `Gctf_v1.06'
[root@c Appl]#
 
[root@c Appl]# cd Gctf/bin/
[root@c bin]#
 
[root@c bin]# ln -sv Gctf-v1.06_sm_30_cu8.0_x86_64 gctf
`gctf' -> `Gctf-v1.06_sm_30_cu8.0_x86_64'
 
[root@c bin]# ln -sv Gctf-v1.06_sm_30_cu8.0_x86_64 Gctf
`Gctf' -> `Gctf-v1.06_sm_30_cu8.0_x86_64'
[root@c bin]#
 
[root@c bin]# ls -l
合計 13552
lrwxrwxrwx 1 root root      29  4月 26 12:24 Gctf -> Gctf-v1.06_sm_30_cu8.0_x86_64
-rwxrwxr-x 1 root root 1560741  9月 29  2016 Gctf-v1.06_sm_20_cu5.0_x86_64
-rwxrwxr-x 1 root root 2006534  9月 29  2016 Gctf-v1.06_sm_20_cu6.0_x86_64
-rwxrwxr-x 1 root root 2021499  9月 29  2016 Gctf-v1.06_sm_20_cu6.5_x86_64
-rwxrwxr-x 1 root root 2081289  9月 29  2016 Gctf-v1.06_sm_20_cu7.0_x86_64
-rwxrwxr-x 1 root root 2091780  9月 29  2016 Gctf-v1.06_sm_20_cu7.5_x86_64
-rwxrwxr-x 1 root root 2009474 10月 17  2016 Gctf-v1.06_sm_20_cu8.0_x86_64
-rwxrwxr-x 1 root root 2091394 10月 17  2016 Gctf-v1.06_sm_30_cu8.0_x86_64
lrwxrwxrwx 1 root root      29  4月 26 12:24 gctf -> Gctf-v1.06_sm_30_cu8.0_x86_64
[root@c bin]#

GCtfFind

本家様 https://github.com/czimaginginstitute/GCtfFind

git clone https://github.com/czimaginginstitute/GCtfFind
cd GCtfFind
make exe -f makefile CUDAHOME=/usr/local/cuda-12.2

ubuntu22.04にて「/usr/bin/ld: /apps/GCtfFind/Lib/libmrcfile.a(CLoadExtHeader.o): relocation R_X86_64_32 against symbol `__gxx_personality_v0@@CXXABI_1.3' can not be used when making a shared object; recompile with -fPIC」と言われる
その際はmakefileを下記のように修正する

--- a/makefile
+++ b/makefile
@@ -76,7 +76,7 @@ exe: $(OBJS)
        $(PRJLIB)/libcuutil.a \
        $(PRJLIB)/libcuutilfft.a \
        -L$(CUDALIB) -L/usr/lib64 \
-       -lcufft -lcudart -lcuda -lc -lm -lpthread \
+       -lcufft -lcudart -lcuda -lc -lm -lpthread -no-pie \
        -o GCtfFind
        @echo GCtfFind has been generated.
最新の60件
2025-03-23 2025-03-22 2025-03-20 2025-03-17 2025-03-16 2025-03-15 2025-03-10 2025-03-08 2025-03-06 2025-03-03 2025-03-02 2025-03-01 2025-02-23 2025-02-18 2025-02-17 2025-02-14 2025-02-12 2025-02-03 2025-02-02 2025-01-27 2025-01-26 2025-01-25 2025-01-24 2025-01-23 2025-01-20 2025-01-13 2025-01-12 2025-01-08 2024-12-30 2024-12-29 2024-12-22 2024-12-20 2024-12-17 2024-12-15 2024-12-14 2024-12-12 2024-12-11 2024-12-10 2024-12-09 2024-11-28 2024-11-22 2024-11-15 2024-11-14 2024-11-12 2024-11-06 2024-11-05

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2024-02-04 (日) 13:08:46