Skip to content

Commit c432c19

Browse files
Fixed --library option in -m dpctl script
It outputed -lSyclInterface, which should be -lDPCTLSyclInterface Modified docstrings throughout to use correct library name
1 parent e22412f commit c432c19

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
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:

0 commit comments

Comments
 (0)