おふとんの中から寝言をつぶやく

ビットコインなどの暗号(仮想)通貨関連の話題を中心に雑多に書きます。

CentOSでサードパーティーのリポジトリを使う場合の注意

CentOSサードパーティーリポジトリを使ってインストールした場合、

/etc/yum.repos.d/ に入れたリポジトリファイル内のenabledを1のままにした場合、その後の作業で何かをインストールしたい場合にバージョンの競合があってインストールできないということが起きました。

 

そのため、当該リポジトリは必要なものをインストールした後、

 

enabled=0

 

にしておきましょう。

 

updates は CentOS 公式のリポジトリですが、epel, ius, remi などサードパーティーリポジトリを利用する際は注意が必要です。
*1 * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + *2 * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + *3 * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-button-color: initial; --theme-button-hover-color: initial; --theme-button-hover-background-color: initial; --theme-button-active-background-color: initial; --theme-button-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-selected-background-color: initial; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-background-attachment: auto; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-background-border-bottom: 0; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-background-border-top: 0; --theme-footer-title-color: var(--black-250); --theme-footer-text-color: var(--black-300); --theme-footer-link-color: var(--black-300); --theme-footer-link-color-hover: var(--black-200); --theme-footer-divider-color: var(--black-500); --theme-footer-padding-top: 0; --theme-footer-padding-bottom: 0; --theme-link-color: initial; --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-tag-color: initial; --theme-tag-background-color: initial; --theme-tag-border-color: initial; --theme-tag-hover-color: initial; --theme-tag-hover-background-color: initial; --theme-tag-hover-border-color: initial; --theme-tag-required-color: var(--white); --theme-tag-required-background-color: var(--theme-secondary-500); --theme-tag-required-border-color: transparent; --theme-tag-required-hover-color: var(--white); --theme-tag-required-hover-background-color: var(--theme-secondary-400); --theme-tag-required-hover-border-color: transparent; --theme-body-font-family: var(--ff-sans); --theme-body-font-color: var(--black-600); --theme-post-title-font-family: var(--ff-sans); --theme-post-title-color: var(--theme-link-color); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-topbar-bottom-border: 1px solid var(--black-225); color: #0c0d0e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI Adjusted', 'Segoe UI', 'Liberation Sans', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: #ffffff; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" />常に有効にしておくのではなく、必要時のみリポジトリを有効にした方が安全です。

 

参考:

ja.stackoverflow.com

 

 

 

 

*1:100% - var(--theme-base-primary-color-l

*2:100% - var(--theme-base-primary-color-l

*3:100% - var(--theme-base-primary-color-l

Intel Xeon Phi 5110pを動かす(2)

Xeon Phi 5110pをCentOSで動かすためにここしばらく格闘していましたが、ついにコンパイルしてPhi上でプログラムを動かすことに成功しました!

CentOS上でknight's cornerでプログラムを動かしたところ

上記はPhi用のコンパイラを準備するために探したサイトにあった確認用のコードの実行シーン

github.com

 

CentOS7.9をISOイメージからインストールして、上記のgcc-5.1.1-kncが動かせるようになるまでの手順を残しておこうと思います。(今からこれを読む人は世界に5人も居ないと思うけど…)

 

続きを読む

Intel Xeon Phi 5110pを動かす

ようやくcentosで動かすための準備が出来たような感じなので備忘録として書いておきます

 

箇条書きで乱雑なのはご容赦ください

 

ハード: 

Xeon E5-2650 v4

M/B supermicro X10SRA-F

MEM ECC DDR4-2400(16GB x4)

HDD WD RED 3GB

 

インテル® Xeon Phi™ コプロセッサー セットアップ手順|テックウインド株式会社

ここを参考に進めていたが、インストール環境を整える必要があった

 

カーネルバージョンを合わせるだけですんなりと進めたので、そのカーネルバージョンの合わせ方がこのページのポイント


centOS 8.5のイメージ取得
インストール

yum update

これをやると、カーネルもアップデートされるので、

https://note.com/muroy/n/ne9184c3c7359
https://www.hpe.com/jp/ja/servers/linux/matrix/driver-26-rhel8.html

上記を参考に、

yum install kernel-4.18.0-348.2.1.el8_5
yum downgrade redhat-release
shutdown -r now

 

mpss-3.8.6.tarをどこかで調達

mpss-3.8.6を展開して、

cd mpss-3.8.6
sudo yum install *.rpm

 

https://jjkeijser.github.io/mpss/xeon-phi-mpss-centos8.html

MPSS 3.8.6 on CentOS 8.5
にある、mpss-modules-*-4.18.0-248.2.1.el8_5*.rpm
をダウンロード

yum install mpss-modules-*-4.18.0-248.2.1.el8_5*.rpm

これでインストールマニュアルのStep3(C)のmodprobeが出来るようになる

…はず

 

windowsの場合は、mpss-3.8.6.zipを展開してインストールしたらすぐ動きそうだったんですけどねぇ…