资源管理

Device Profile

1
2
3
4
5
6
7
8
9
10
# 创建VGPU模板
openstack accelerator device profile create vgpu-dp '[{"resources:VGPU": "1"}]'

# 创建PGPU模板
openstack accelerator device profile create pgpu-dp '[{"resources:PGPU":"1"}]'
openstack accelerator device profile create pgpu-dp '[{"resources:PGPU":"1"}, {"resources:PGPU":"1"}]'
openstack accelerator device profile create pgpu-dp '[{"resources:PGPU":"1", "trait:CUSTOM_GPU_PRODUCT_ID_1EB8": "required"}]'

# 创建FPGA模板
openstack accelerator device profile create fpga-dp '[{"resources:FPGA": "1", "accel:bitstream_id": "31237254-bbf0-46b9-96c4-9ec636f72720"}]'

Flavor

1
2
# 创建含加速资源的Flavor
openstack flavor create --vcpus 1 --ram 512 --disk 1 --property accel:device_profile=vgpu-dp vgpu-cirros