File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -507,17 +507,6 @@ void program_impl::create_pi_program_with_kernel_name(
507
507
MProgram = PM.createPIProgram (Img, get_context (), {FirstDevice});
508
508
}
509
509
510
- void program_impl::set_spec_constant_impl (const char *Name, const void *ValAddr,
511
- size_t ValSize) {
512
- if (MState != program_state::none)
513
- throw sycl::ext::oneapi::experimental::spec_const_error (
514
- " Invalid program state" , PI_ERROR_INVALID_PROGRAM);
515
- // Reuse cached programs lock as opposed to introducing a new lock.
516
- auto LockGuard = MContext->getKernelProgramCache ().acquireCachedPrograms ();
517
- spec_constant_impl &SC = SpecConstRegistry[Name];
518
- SC.set (ValSize, ValAddr);
519
- }
520
-
521
510
void program_impl::flush_spec_constants (const RTDeviceBinaryImage &Img,
522
511
RT::PiProgram NativePrg) const {
523
512
// iterate via all specialization constants the program's image depends on,
Original file line number Diff line number Diff line change @@ -306,9 +306,6 @@ class program_impl {
306
306
// / \return the current state of this SYCL program.
307
307
program_state get_state () const { return MState; }
308
308
309
- void set_spec_constant_impl (const char *Name, const void *ValAddr,
310
- size_t ValSize);
311
-
312
309
// / Takes current values of specialization constants and "injects" them into
313
310
// / the underlying native program program via specialization constant
314
311
// / managemment PI APIs. The native program passed as non-null argument
You can’t perform that action at this time.
0 commit comments