| 2958 | } |
| 2959 | |
| 2960 | hipError_t ihipMemsetCommand(std::vector<amd::Command*>& commands, void* dst, int64_t value, |
| 2961 | size_t valueSize, size_t sizeBytes, hip::Stream* stream) { |
| 2962 | hipError_t hip_error = hipSuccess; |
| 2963 | auto aligned_dst = amd::alignUp(reinterpret_cast<address>(dst), sizeof(uint64_t)); |
| 2964 | size_t offset = 0; |
| 2965 | amd::Memory* memory = getMemoryObject(dst, offset); |
| 2966 | size_t n_head_bytes = 0; |
| 2967 | size_t n_tail_bytes = 0; |
| 2968 | amd::Command* command; |
| 2969 | |
| 2970 | hip_error = packFillMemoryCommand(command, memory, offset, value, valueSize, sizeBytes, stream); |
| 2971 | commands.push_back(command); |
| 2972 | |
| 2973 | return hip_error; |
| 2974 | } |
| 2975 | |
| 2976 | hipError_t ihipMemset(void* dst, int64_t value, size_t valueSize, size_t sizeBytes, |
| 2977 | hipStream_t stream, bool isAsync = false) { |
no test coverage detected