@ -727,6 +727,17 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
$ { S R C _ U T I L _ H E A D E R S }
)
set ( ONEAPI_OFFLINE_COMPILER_PARALLEL_JOBS 1 )
if ( WITH_CYCLES_ONEAPI_BINARIES )
cmake_host_system_information ( RESULT AVAILABLE_MEMORY_AMOUNT QUERY AVAILABLE_PHYSICAL_MEMORY )
# C o n s e r v a t i v e v a l u e o f p e a k c o n s u m p t i o n h e r e , j u s t t o b e f u l l y s u r e t h a t o t h e r b a c k e n d c o m p i l e r s w i l l h a v e e n o u g h m e m o r y a s w e l l
set ( ONEAPI_GPU_COMPILER_MEMORY_AT_PEAK_MB 8150 )
math ( EXPR ONEAPI_OFFLINE_COMPILER_PARALLEL_JOBS "${AVAILABLE_MEMORY_AMOUNT} / ${ONEAPI_GPU_COMPILER_MEMORY_AT_PEAK_MB}" )
if ( ONEAPI_OFFLINE_COMPILER_PARALLEL_JOBS LESS 1 )
set ( ONEAPI_OFFLINE_COMPILER_PARALLEL_JOBS 1 )
endif ( )
message ( STATUS "${ONEAPI_OFFLINE_COMPILER_PARALLEL_JOBS} instance(s) of oneAPI offline compiler will be used." )
endif ( )
# S Y C L _ C P P _ F L A G S i s a v a r i a b l e t h a t t h e u s e r c a n s e t t o p a s s e x t r a c o m p i l e r o p t i o n s
set ( sycl_compiler_flags
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / $ { S R C _ K E R N E L _ D E V I C E _ O N E A P I }
@ -735,6 +746,8 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
- f d e l a y e d - t e m p l a t e - p a r s i n g
- m l l v m - i n l i n e d e f a u l t - t h r e s h o l d = 3 0 0
- m l l v m - i n l i n e h i n t - t h r e s h o l d = 4 0 0
- f s y c l - d e v i c e - c o d e - s p l i t = p e r _ k e r n e l
- f s y c l - m a x - p a r a l l e l - l i n k - j o b s = $ { O N E A P I _ O F F L I N E _ C O M P I L E R _ P A R A L L E L _ J O B S }
- s h a r e d
- D W I T H _ O N E A P I
- f f a s t - m a t h