-def get_intel_compute_runtime(args):
- # The only reason we need to build Compute Runtime ourselves is because Intel packages have no DG1 support
- # Otherwise, we could have just installed DEB packages from GitHub or Intel PPA
- if args.intel_compute_runtime is None:
- return None
-
- cmake_opts = ['-DCMAKE_BUILD_TYPE=Release',
- '-DSKIP_UNIT_TESTS=TRUE',
- '-DSUPPORT_GEN8=0', '-DSUPPORT_GEN9=1', '-DSUPPORT_GEN11=1', '-DSUPPORT_GEN12LP=1', '-DSUPPORT_DG1=1',
- '-DBUILD_WITH_L0=1']
-
- return hpccm.building_blocks.generic_cmake(
- repository='https://github.com/intel/compute-runtime.git',
- directory='compute-runtime',
- prefix='/usr/local', recursive=True, branch=args.intel_compute_runtime,
- cmake_opts=cmake_opts,
- postinstall=['ldconfig'])
-
-