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

Function cfill_fp32

csrc/pythonInterface.cpp:730–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728}
729
730void cfill_fp32(float* A, float* B, float value, long n) {
731 try {
732 auto& q = xpu_default_queue();
733 q.fill(A, value, static_cast<size_t>(n)).wait();
734 } catch (const sycl::exception& e) {
735 fprintf(stderr, "XPU Error in cfill_fp32: %s\n", e.what());
736 }
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>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected