Skip to content

Commit

Permalink
Add check for IPEX Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Disty0 committed Jun 10, 2023
1 parent 409c9d4 commit bda28dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/sd_hijack.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ def hijack(self, m):

if opts.cuda_compile and opts.cuda_compile_mode == 'ipex':
import logging
shared.log.info("Model compile enabled: Using IPEX Optimize Graph Mode")
if shared.cmd_opts.use_ipex:
shared.log.info("Model compile enabled: IPEX Optimize Graph Mode")
else:
shared.log.warning("Model compile skipped: IPEX Method is for Intel GPU's with OneAPI")
elif opts.cuda_compile and opts.cuda_compile_mode != 'none':
try:
import logging
Expand Down

0 comments on commit bda28dc

Please sign in to comment.