Skip to content

Commit ea9ac71

Browse files
Merge pull request #1614 from IntelPython/fix-main-script
Fix main script
2 parents e22412f + 3938e72 commit ea9ac71

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

dpctl/__main__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def _dpctl_dir() -> str:
3030

3131

3232
def get_include_dir() -> str:
33-
"Prints include flags for dpctl and SyclInterface library"
33+
"Prints include flags for dpctl and DPCTLSyclInterface library"
3434
return os.path.join(_dpctl_dir(), "include")
3535

3636

3737
def print_include_flags() -> None:
38-
"Prints include flags for dpctl and SyclInterface library"
38+
"Prints include flags for dpctl and DPCTLSyclInterface library"
3939
print("-I " + get_include_dir())
4040

4141

@@ -46,13 +46,13 @@ def get_tensor_include_dir() -> str:
4646

4747

4848
def print_tensor_include_flags() -> None:
49-
"Prints include flags for dpctl and SyclInterface library"
49+
"Prints include flags for dpctl and DPCTLSyclInterface library"
5050
libtensor_dir = get_tensor_include_dir()
5151
print("-I " + libtensor_dir)
5252

5353

5454
def print_cmake_dir() -> None:
55-
"Prints directory with FindDpctl.cmake"
55+
"Prints directory with dpctl-config.cmake"
5656
dpctl_dir = _dpctl_dir()
5757
cmake_dir = os.path.join(dpctl_dir, "resources", "cmake")
5858
print(cmake_dir)
@@ -64,13 +64,13 @@ def get_library_dir() -> str:
6464

6565

6666
def print_library() -> None:
67-
"Prints linker flags for SyclInterface library"
67+
"Prints linker flags for DPCTLSyclInterface library"
6868
dpctl_dir = get_library_dir()
6969
plt = platform.platform()
7070
ld_flags = "-L " + dpctl_dir
7171
if plt != "Windows":
7272
ld_flags = ld_flags + " -Wl,-rpath," + dpctl_dir
73-
print(ld_flags + " -lSyclInterface")
73+
print(ld_flags + " -lDPCTLSyclInterface")
7474

7575

7676
def _warn_if_any_set(args, li) -> None:

dpctl/tests/test_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ def test_main_library():
205205
)
206206
assert res.returncode == 0
207207
assert res.stdout
208-
assert res.stdout.decode("utf-8").startswith("-L")
208+
output = res.stdout.decode("utf-8")
209+
assert output.startswith("-L")
210+
assert "DPCTLSyclInterface" in output
209211

210212

211213
def test_tensor_includes():

0 commit comments

Comments
 (0)