MCPcopy Create free account
hub / github.com/ROCm/clr / ihipMemsetCommand

Function ihipMemsetCommand

hipamd/src/hip_memory.cpp:2960–2974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2958}
2959
2960hipError_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
2976hipError_t ihipMemset(void* dst, int64_t value, size_t valueSize, size_t sizeBytes,
2977 hipStream_t stream, bool isAsync = false) {

Callers 3

CreateCommandMethod · 0.85
ihipMemsetFunction · 0.85
ihipMemset3DCommandFunction · 0.85

Calls 3

alignUpFunction · 0.85
getMemoryObjectFunction · 0.85
packFillMemoryCommandFunction · 0.85

Tested by

no test coverage detected