@@ -1875,11 +1875,6 @@ inline pi_result piProgramCreateWithBinary(
1875
1875
PI_ASSERT (Binaries && Lengths, PI_ERROR_INVALID_VALUE);
1876
1876
PI_ASSERT (Program, PI_ERROR_INVALID_PROGRAM);
1877
1877
1878
- // For now we support only one device.
1879
- if (NumDevices != 1 ) {
1880
- die (" piProgramCreateWithBinary: level_zero supports only one device." );
1881
- return PI_ERROR_INVALID_VALUE;
1882
- }
1883
1878
if (!Binaries[0 ] || !Lengths[0 ]) {
1884
1879
if (BinaryStatus)
1885
1880
*BinaryStatus = PI_ERROR_INVALID_VALUE;
@@ -1981,11 +1976,6 @@ piProgramLink(pi_context Context, pi_uint32 NumDevices,
1981
1976
pi_uint32 NumInputPrograms, const pi_program *InputPrograms,
1982
1977
void (*PFnNotify)(pi_program Program, void *UserData),
1983
1978
void *UserData, pi_program *RetProgram) {
1984
- // We only support one device with Level Zero currently.
1985
- if (NumDevices != 1 ) {
1986
- die (" piProgramLink: level_zero supports only one device." );
1987
- return PI_ERROR_INVALID_VALUE;
1988
- }
1989
1979
1990
1980
// Validate input parameters.
1991
1981
PI_ASSERT (DeviceList, PI_ERROR_INVALID_DEVICE);
@@ -2060,14 +2050,6 @@ piProgramBuild(pi_program Program, pi_uint32 NumDevices,
2060
2050
return PI_ERROR_INVALID_VALUE;
2061
2051
}
2062
2052
2063
- // We only support build to one device with Level Zero now.
2064
- // TODO: we should eventually build to the possibly multiple root
2065
- // devices in the context.
2066
- if (NumDevices != 1 ) {
2067
- die (" piProgramBuild: level_zero supports only one device." );
2068
- return PI_ERROR_INVALID_VALUE;
2069
- }
2070
-
2071
2053
// These aren't supported.
2072
2054
PI_ASSERT (!PFnNotify && !UserData, PI_ERROR_INVALID_VALUE);
2073
2055
0 commit comments