@@ -1879,11 +1879,6 @@ inline pi_result piProgramCreateWithBinary(
1879
1879
PI_ASSERT (Binaries && Lengths, PI_ERROR_INVALID_VALUE);
1880
1880
PI_ASSERT (Program, PI_ERROR_INVALID_PROGRAM);
1881
1881
1882
- // For now we support only one device.
1883
- if (NumDevices != 1 ) {
1884
- die (" piProgramCreateWithBinary: level_zero supports only one device." );
1885
- return PI_ERROR_INVALID_VALUE;
1886
- }
1887
1882
if (!Binaries[0 ] || !Lengths[0 ]) {
1888
1883
if (BinaryStatus)
1889
1884
*BinaryStatus = PI_ERROR_INVALID_VALUE;
@@ -1985,11 +1980,6 @@ piProgramLink(pi_context Context, pi_uint32 NumDevices,
1985
1980
pi_uint32 NumInputPrograms, const pi_program *InputPrograms,
1986
1981
void (*PFnNotify)(pi_program Program, void *UserData),
1987
1982
void *UserData, pi_program *RetProgram) {
1988
- // We only support one device with Level Zero currently.
1989
- if (NumDevices != 1 ) {
1990
- die (" piProgramLink: level_zero supports only one device." );
1991
- return PI_ERROR_INVALID_VALUE;
1992
- }
1993
1983
1994
1984
// Validate input parameters.
1995
1985
PI_ASSERT (DeviceList, PI_ERROR_INVALID_DEVICE);
@@ -2064,14 +2054,6 @@ piProgramBuild(pi_program Program, pi_uint32 NumDevices,
2064
2054
return PI_ERROR_INVALID_VALUE;
2065
2055
}
2066
2056
2067
- // We only support build to one device with Level Zero now.
2068
- // TODO: we should eventually build to the possibly multiple root
2069
- // devices in the context.
2070
- if (NumDevices != 1 ) {
2071
- die (" piProgramBuild: level_zero supports only one device." );
2072
- return PI_ERROR_INVALID_VALUE;
2073
- }
2074
-
2075
2057
// These aren't supported.
2076
2058
PI_ASSERT (!PFnNotify && !UserData, PI_ERROR_INVALID_VALUE);
2077
2059
0 commit comments