Skip to content

Commit 3411f28

Browse files
Add '-fsycl-device-code-split=per_kernel' option while biulding and (#1152)
linking DPNP backend for Windows Co-authored-by: Alexander-Makaryev <[email protected]>
1 parent 1b5173d commit 3411f28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/command_build_clib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22
# *****************************************************************************
3-
# Copyright (c) 2016-2020, Intel Corporation
3+
# Copyright (c) 2016-2022, Intel Corporation
44
# All rights reserved.
55
#
66
# Redistribution and use in source and binary forms, with or without
@@ -119,6 +119,7 @@
119119
_project_cmplr_flag_stdcpp_static = []
120120
_project_cmplr_flag_compatibility = []
121121
_project_cmplr_flag_lib = ["/DLL"]
122+
_project_cmplr_flag_release_build += _project_cmplr_flag_sycl_devel
122123
_project_cmplr_macro += [("_WIN", "1")]
123124
_project_rpath = []
124125
# TODO this flag creates unexpected behavior during compilation, need to be fixed
@@ -134,12 +135,12 @@
134135
"""
135136
Debug configuration
136137
"""
137-
_project_cmplr_flag_sycl += _project_cmplr_flag_sycl_devel
138138
_project_cmplr_flag_default_build = _project_cmplr_flag_debug_build
139139
else:
140140
"""
141141
Release configuration
142142
"""
143+
_project_cmplr_flag_sycl += _project_cmplr_flag_sycl_devel
143144
_project_cmplr_flag_default_build = _project_cmplr_flag_release_build
144145

145146
"""

0 commit comments

Comments
 (0)