Skip to content

Commit 20acf64

Browse files
committed
Cleanup RT a bit more
1 parent e46b27a commit 20acf64

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

sycl/source/detail/program_impl.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -507,17 +507,6 @@ void program_impl::create_pi_program_with_kernel_name(
507507
MProgram = PM.createPIProgram(Img, get_context(), {FirstDevice});
508508
}
509509

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-
521510
void program_impl::flush_spec_constants(const RTDeviceBinaryImage &Img,
522511
RT::PiProgram NativePrg) const {
523512
// iterate via all specialization constants the program's image depends on,

sycl/source/detail/program_impl.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ class program_impl {
306306
/// \return the current state of this SYCL program.
307307
program_state get_state() const { return MState; }
308308

309-
void set_spec_constant_impl(const char *Name, const void *ValAddr,
310-
size_t ValSize);
311-
312309
/// Takes current values of specialization constants and "injects" them into
313310
/// the underlying native program program via specialization constant
314311
/// managemment PI APIs. The native program passed as non-null argument

0 commit comments

Comments
 (0)