HPC/Sun Grid Engine

[SGE] GPU 사용 등록

변익수 2015. 10. 22. 18:14
반응형

1. GPU 정보 등록

# qconf -mc

#name               shortcut   type        relop requestable consumable default  urgency

#----------------------------------------------------------------------------------------

arch                a          RESTRING    ==    YES         NO         NONE     0

calendar            c          RESTRING    ==    YES         NO         NONE     0

cpu                 cpu        DOUBLE      >=    YES         NO         0        0

display_win_gui     dwg        BOOL        ==    YES         NO         0        0

gpu                 gpu        INT         <=    YES         YES        0        0

h_core              h_core     MEMORY      <=    YES         NO         0        0

h_cpu               h_cpu      TIME        <=    YES         NO         0:0:0    0

...........................................

...........................................

...........................................


2. GPU 노드 정보 등록

# qconf -me pgpu-0-0

hostname              pgpu-0-0.local

load_scaling          NONE

complex_values        gpu=1

user_lists            NONE

xuser_lists           NONE

projects              NONE

xprojects             NONE

usage_scaling         NONE

report_variables      NONE


3. Qsub 사용예제

# qsub test.sh

#### test.sh

#!/bin/sh

#$ -N test

#$ -q gpu.q

#$ -cwd

#$ -l gpu=1

./deviceQuery


반응형