"""Native SR code must never be authorized by a colliding denoiser entry.""" import importlib.util from pathlib import Path import struct import subprocess import sys import tempfile import unittest ROOT = Path(__file__).resolve().parents[1] TOOLS = ROOT / 'kernels/tools' sys.path.insert(0, str(TOOLS)) spec = importlib.util.spec_from_file_location('d4r_kernel_manifest', TOOLS / 'kernel_manifest.py') manifest = importlib.util.module_from_spec(spec) spec.loader.exec_module(manifest) def fatbin(ptx): entry = bytearray(64) struct.pack_into('