MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / is64bAddressSpace

Function is64bAddressSpace

test_conformance/printf/test_printf.cpp:580–601  ·  view source on GitHub ↗

----------------------------------------- is64bAddressSpace -----------------------------------------

Source from the content-addressed store, hash-verified

578// is64bAddressSpace
579//-----------------------------------------
580bool is64bAddressSpace(cl_device_id device_id)
581{
582 cl_int status;
583 cl_uint addrSpaceB;
584
585 // Device profile
586 status = clGetDeviceInfo(
587 device_id,
588 CL_DEVICE_ADDRESS_BITS,
589 sizeof(cl_uint),
590 &addrSpaceB,
591 NULL);
592 if(status != CL_SUCCESS)
593 {
594 log_error("*** clGetDeviceInfo FAILED ***\n\n");
595 return false;
596 }
597 if(addrSpaceB == 64)
598 return true;
599 else
600 return false;
601}
602
603//-----------------------------------------
604// subtest_fail

Callers 1

doTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected