|
38 | 38 | elif sys.platform in ["win32", "cygwin"]: |
39 | 39 | IS_WIN = True |
40 | 40 | else: |
41 | | - assert False, sys.platform + " not supported" |
| 41 | + assert False, "We currently do not build for " + sys.platform |
42 | 42 |
|
43 | | -if IS_LIN: |
44 | | - DPCPP_ROOT = os.environ["ONEAPI_ROOT"] + r"/compiler/latest/linux" |
45 | | - os.environ["DPCTL_SYCL_INTERFACE_LIBDIR"] = "dpctl" |
46 | | - os.environ["DPCTL_SYCL_INTERFACE_INCLDIR"] = r"dpctl/include" |
47 | | - os.environ["CFLAGS"] = "-fPIC" |
48 | | - |
49 | | -elif IS_WIN: |
50 | | - os.environ["DPCTL_SYCL_INTERFACE_LIBDIR"] = "dpctl" |
51 | | - os.environ["DPCTL_SYCL_INTERFACE_INCLDIR"] = r"dpctl\include" |
52 | | - |
53 | | -dpctl_sycl_interface_lib = os.environ["DPCTL_SYCL_INTERFACE_LIBDIR"] |
54 | | -dpctl_sycl_interface_include = os.environ["DPCTL_SYCL_INTERFACE_INCLDIR"] |
55 | | -sycl_lib = os.environ["ONEAPI_ROOT"] + r"\compiler\latest\windows\lib" |
| 43 | +dpctl_sycl_interface_lib = "dpctl" |
| 44 | +dpctl_sycl_interface_include = r"dpctl/include" |
56 | 45 |
|
57 | 46 | # Get long description |
58 | 47 | with open("README.md", "r", encoding="utf-8") as file: |
@@ -131,12 +120,12 @@ def extensions(): |
131 | 120 | elif IS_MAC: |
132 | 121 | pass |
133 | 122 | elif IS_WIN: |
134 | | - libs += ["DPCTLSyclInterface", "sycl"] |
| 123 | + libs += ["DPCTLSyclInterface"] |
135 | 124 |
|
136 | 125 | if IS_LIN: |
137 | 126 | librarys = [dpctl_sycl_interface_lib] |
138 | 127 | elif IS_WIN: |
139 | | - librarys = [dpctl_sycl_interface_lib, sycl_lib] |
| 128 | + librarys = [dpctl_sycl_interface_lib] |
140 | 129 | elif IS_MAC: |
141 | 130 | librarys = [dpctl_sycl_interface_lib] |
142 | 131 |
|
|
0 commit comments