MAP/UNMAP are done also for device memory.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -530,13 +530,13 @@ union hl_wait_cs_args { · 529 unmodified lines | |||
| 530 | struct hl_wait_cs_out out; | 530 | struct hl_wait_cs_out out; |
| 531 | }; | 531 | }; |
| 532 | 532 | ||
| 533 | /* Opcode to alloc device memory */ | 533 | /* Opcode to allocate device memory */ |
| 534 | #define HL_MEM_OP_ALLOC 0 | 534 | #define HL_MEM_OP_ALLOC 0 |
| 535 | /* Opcode to free previously allocated device memory */ | 535 | /* Opcode to free previously allocated device memory */ |
| 536 | #define HL_MEM_OP_FREE 1 | 536 | #define HL_MEM_OP_FREE 1 |
| 537 | /* Opcode to map host memory */ | 537 | /* Opcode to map host and device memory */ |
| 538 | #define HL_MEM_OP_MAP 2 | 538 | #define HL_MEM_OP_MAP 2 |
| 539 | /* Opcode to unmap previously mapped host memory */ | 539 | /* Opcode to unmap previously mapped host and device memory */ |
| 540 | #define HL_MEM_OP_UNMAP 3 | 540 | #define HL_MEM_OP_UNMAP 3 |
| 541 | 541 | ||
| 542 | /* Memory flags */ | 542 | /* Memory flags */ |