MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / cfill_uint8

Function cfill_uint8

csrc/pythonInterface.cpp:739–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739void cfill_uint8(unsigned char* A, unsigned char* B, unsigned char value, long n) {
740 // Use host-side memset instead of sycl::queue::fill<unsigned char>
741 // which segfaults on certain Intel GPU drivers (e.g. Max 1550).
742 // USM shared memory is host-accessible, so memset works directly.
743 memset(A, value, static_cast<size_t>(n));
744}
745
746#endif
747

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected