2.14 异步行为........................................................................................................ 39
第 3 章 运行时库 ...................................................................................................... 41
3.1 运行时库的定义 ............................................................................................... 41
3.2 运行时库例程 .................................................................................................. 41
3.2.1 acc_get_num_devices................................................................................ 42
3.2.2 acc_set_device_type .................................................................................. 42
3.2.3 acc_get_device_type ................................................................................. 42
3.2.4 acc_set_device_num ................................................................................. 43
3.2.5 acc_get_device_type ................................................................................. 43
3.2.6 acc_async_test .......................................................................................... 44
3.2.7 acc_async_test_all .................................................................................... 44
3.2.8 acc_async_wait......................................................................................... 44
3.2.9 acc_async_wait_async .............................................................................. 45
3.2.10 acc_async_wait_all ................................................................................. 45
3.2.11 acc_async_wait_all_async ....................................................................... 45
3.2.12 acc_init .................................................................................................. 46
3.2.13 acc_shutdown ......................................................................................... 46
3.2.14 acc_on_device......................................................................................... 47
3.2.15 acc_malloc ............................................................................................. 47
3.1.16 acc_free.................................................................................................. 47
3.2.17 acc_copyin ............................................................................................. 48
3.2.18 acc_present_or_copyin............................................................................ 48
3.2.19 acc_create .............................................................................................. 49
3.2.20 acc_present_or_create ............................................................................ 49
3.2.21 acc_copyout............................................................................................ 50
3.2.22 acc_delete............................................................................................... 50
3.2.23 acc_update_device .................................................................................. 51
3.2.24 acc_update_self ...................................................................................... 51
3.2.25 acc_map_data ........................................................................................ 52
3.2.26 acc_unmap_data..................................................................................... 52
3.2.27 acc_deviceptr ......................................................................................... 52
3.2.28 acc_hostptr ............................................................................................ 53
3.2.29 acc_is_present ........................................................................................ 53
3.2.30 acc_memcpy_to_device ........................................................................... 53
3.2.31 acc_memcpy_from_device....................................................................... 53
第 4 章 环境变量 ...................................................................................................... 55
4.1 ACC_DEVICE_TYPE................................................................................. 55
4.2 ACC_DEVICE_NUM ................................................................................. 55
第 5 章 词汇表.......................................................................................................... 56
附录 A 关于特定应用的建议........................................................................................... 59
A.1 目标设备................................................................................................... 59
A.2 目标平台的 API 例程 ................................................................................ 60
A.3 建议性选择 ............................................................................................... 62