Skip to content

Commit 8aa1c6f

Browse files
test
1 parent 8d84dcd commit 8aa1c6f

File tree

9 files changed

+48
-45
lines changed

9 files changed

+48
-45
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)
99
include(CTest)
1010
enable_testing()
1111

12-
add_library(tensor SHARED include/tensor_bind.cc)
12+
add_library(tensor2 SHARED include/tensor_bind.cc)
1313

1414
target_include_directories(
15-
tensor
15+
tensor2
1616
PRIVATE "${CMAKE_CURRENT_LIST_DIR}/.venv/lib/python3.10/site-packages/pybind11/include"
1717
PRIVATE "/mnt/d/C++_ver2/TensorMain_wsl2/src"
1818
PRIVATE ${Python_INCLUDE_DIRS}
1919
)
2020

21-
SET_TARGET_PROPERTIES(tensor PROPERTIES PREFIX "")
21+
SET_TARGET_PROPERTIES(tensor2 PROPERTIES PREFIX "")
2222

2323
target_link_directories(
24-
tensor
24+
tensor2
2525
PRIVATE "/mnt/d/C++_ver2/TensorMain_wsl2/lib"
2626
)
2727

28-
target_link_libraries(tensor TensorCore_Core)
28+
target_link_libraries(tensor2 TensorCore_Core)
2929

3030
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
3131
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
3232
include(CPack)
3333

34-
install(TARGETS tensor LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
34+
install(TARGETS tensor2 LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
3535
endif()

build/CMakeCache.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ TensorCore_Python_LIB_DEPENDS:STATIC=general;TensorCore_Core;
317317
//Value Computed by CMake
318318
TensorCore_Python_SOURCE_DIR:STATIC=/mnt/d/Python_ver2/TensorCore_python_wsl2
319319

320+
//Dependencies for the target
321+
tensor2_LIB_DEPENDS:STATIC=general;TensorCore_Core;
322+
320323
//Dependencies for the target
321324
tensor_LIB_DEPENDS:STATIC=general;TensorCore_Core;
322325

build/CMakeFiles/Makefile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ set(CMAKE_DEPEND_INFO_FILES
8585
"CMakeFiles/ContinuousCoverage.dir/DependInfo.cmake"
8686
"CMakeFiles/ContinuousMemCheck.dir/DependInfo.cmake"
8787
"CMakeFiles/ContinuousSubmit.dir/DependInfo.cmake"
88-
"CMakeFiles/tensor.dir/DependInfo.cmake"
88+
"CMakeFiles/tensor2.dir/DependInfo.cmake"
8989
)

build/CMakeFiles/Makefile2

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ CMAKE_BINARY_DIR = /mnt/d/Python_ver2/TensorCore_python_wsl2/build
6363
# Directory level rules for the build root directory
6464

6565
# The main recursive "all" target.
66-
all: CMakeFiles/tensor.dir/all
66+
all: CMakeFiles/tensor2.dir/all
6767
.PHONY : all
6868

6969
# The main recursive "preinstall" target.
@@ -99,7 +99,7 @@ clean: CMakeFiles/ContinuousTest.dir/clean
9999
clean: CMakeFiles/ContinuousCoverage.dir/clean
100100
clean: CMakeFiles/ContinuousMemCheck.dir/clean
101101
clean: CMakeFiles/ContinuousSubmit.dir/clean
102-
clean: CMakeFiles/tensor.dir/clean
102+
clean: CMakeFiles/tensor2.dir/clean
103103
.PHONY : clean
104104

105105
#=============================================================================
@@ -831,30 +831,30 @@ CMakeFiles/ContinuousSubmit.dir/clean:
831831
.PHONY : CMakeFiles/ContinuousSubmit.dir/clean
832832

833833
#=============================================================================
834-
# Target rules for target CMakeFiles/tensor.dir
834+
# Target rules for target CMakeFiles/tensor2.dir
835835

836836
# All Build rule for target.
837-
CMakeFiles/tensor.dir/all:
838-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/depend
839-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/build
840-
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles --progress-num=1,2 "Built target tensor"
841-
.PHONY : CMakeFiles/tensor.dir/all
837+
CMakeFiles/tensor2.dir/all:
838+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/depend
839+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/build
840+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles --progress-num=1,2 "Built target tensor2"
841+
.PHONY : CMakeFiles/tensor2.dir/all
842842

843843
# Build rule for subdir invocation for target.
844-
CMakeFiles/tensor.dir/rule: cmake_check_build_system
844+
CMakeFiles/tensor2.dir/rule: cmake_check_build_system
845845
$(CMAKE_COMMAND) -E cmake_progress_start /mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles 2
846-
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/tensor.dir/all
846+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/tensor2.dir/all
847847
$(CMAKE_COMMAND) -E cmake_progress_start /mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles 0
848-
.PHONY : CMakeFiles/tensor.dir/rule
848+
.PHONY : CMakeFiles/tensor2.dir/rule
849849

850850
# Convenience name for target.
851-
tensor: CMakeFiles/tensor.dir/rule
852-
.PHONY : tensor
851+
tensor2: CMakeFiles/tensor2.dir/rule
852+
.PHONY : tensor2
853853

854854
# clean rule for target.
855-
CMakeFiles/tensor.dir/clean:
856-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/clean
857-
.PHONY : CMakeFiles/tensor.dir/clean
855+
CMakeFiles/tensor2.dir/clean:
856+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/clean
857+
.PHONY : CMakeFiles/tensor2.dir/clean
858858

859859
#=============================================================================
860860
# Special targets to cleanup operation of make.

build/CMakeFiles/TargetDirectories.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/ContinuousCoverage.dir
2727
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/ContinuousMemCheck.dir
2828
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/ContinuousSubmit.dir
29-
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/tensor.dir
29+
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/tensor2.dir
3030
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/package.dir
3131
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/package_source.dir
3232
/mnt/d/Python_ver2/TensorCore_python_wsl2/build/CMakeFiles/test.dir

build/Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -556,40 +556,40 @@ ContinuousSubmit/fast:
556556
.PHONY : ContinuousSubmit/fast
557557

558558
#=============================================================================
559-
# Target rules for targets named tensor
559+
# Target rules for targets named tensor2
560560

561561
# Build rule for target.
562-
tensor: cmake_check_build_system
563-
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 tensor
564-
.PHONY : tensor
562+
tensor2: cmake_check_build_system
563+
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 tensor2
564+
.PHONY : tensor2
565565

566566
# fast build rule for target.
567-
tensor/fast:
568-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/build
569-
.PHONY : tensor/fast
567+
tensor2/fast:
568+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/build
569+
.PHONY : tensor2/fast
570570

571571
include/tensor_bind.o: include/tensor_bind.cc.o
572572
.PHONY : include/tensor_bind.o
573573

574574
# target to build an object file
575575
include/tensor_bind.cc.o:
576-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/include/tensor_bind.cc.o
576+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/include/tensor_bind.cc.o
577577
.PHONY : include/tensor_bind.cc.o
578578

579579
include/tensor_bind.i: include/tensor_bind.cc.i
580580
.PHONY : include/tensor_bind.i
581581

582582
# target to preprocess a source file
583583
include/tensor_bind.cc.i:
584-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/include/tensor_bind.cc.i
584+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/include/tensor_bind.cc.i
585585
.PHONY : include/tensor_bind.cc.i
586586

587587
include/tensor_bind.s: include/tensor_bind.cc.s
588588
.PHONY : include/tensor_bind.s
589589

590590
# target to generate assembly for a file
591591
include/tensor_bind.cc.s:
592-
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor.dir/build.make CMakeFiles/tensor.dir/include/tensor_bind.cc.s
592+
$(MAKE) $(MAKESILENT) -f CMakeFiles/tensor2.dir/build.make CMakeFiles/tensor2.dir/include/tensor_bind.cc.s
593593
.PHONY : include/tensor_bind.cc.s
594594

595595
# Help Target
@@ -635,7 +635,7 @@ help:
635635
@echo "... NightlySubmit"
636636
@echo "... NightlyTest"
637637
@echo "... NightlyUpdate"
638-
@echo "... tensor"
638+
@echo "... tensor2"
639639
@echo "... include/tensor_bind.o"
640640
@echo "... include/tensor_bind.i"
641641
@echo "... include/tensor_bind.s"

build/cmake_install.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ if(NOT DEFINED CMAKE_OBJDUMP)
4343
endif()
4444

4545
if("x${CMAKE_INSTALL_COMPONENT}x" STREQUAL "xUnspecifiedx" OR NOT CMAKE_INSTALL_COMPONENT)
46-
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so" AND
47-
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so")
46+
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so" AND
47+
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so")
4848
file(RPATH_CHECK
49-
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so"
49+
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so"
5050
RPATH "")
5151
endif()
52-
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/mnt/d/Python_ver2/TensorCore_python_wsl2/lib/tensor.so")
53-
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so" AND
54-
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so")
52+
file(INSTALL DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" TYPE SHARED_LIBRARY FILES "/mnt/d/Python_ver2/TensorCore_python_wsl2/lib/tensor2.so")
53+
if(EXISTS "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so" AND
54+
NOT IS_SYMLINK "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so")
5555
file(RPATH_CHANGE
56-
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so"
56+
FILE "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so"
5757
OLD_RPATH "/mnt/d/C++_ver2/TensorMain_wsl2/lib:"
5858
NEW_RPATH "")
5959
if(CMAKE_INSTALL_DO_STRIP)
60-
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor.so")
60+
execute_process(COMMAND "/usr/bin/strip" "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/lib/tensor2.so")
6161
endif()
6262
endif()
6363
endif()

build/compile_commands.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"directory": "/mnt/d/Python_ver2/TensorCore_python_wsl2/build",
4-
"command": "/usr/bin/c++ -Dtensor_EXPORTS -I/mnt/d/Python_ver2/TensorCore_python_wsl2/.venv/lib/python3.10/site-packages/pybind11/include -I/mnt/d/C++_ver2/TensorMain_wsl2/src -I/usr/include/python3.10 -g -fPIC -o CMakeFiles/tensor.dir/include/tensor_bind.cc.o -c /mnt/d/Python_ver2/TensorCore_python_wsl2/include/tensor_bind.cc",
4+
"command": "/usr/bin/c++ -Dtensor2_EXPORTS -I/mnt/d/Python_ver2/TensorCore_python_wsl2/.venv/lib/python3.10/site-packages/pybind11/include -I/mnt/d/C++_ver2/TensorMain_wsl2/src -I/usr/include/python3.10 -g -fPIC -o CMakeFiles/tensor2.dir/include/tensor_bind.cc.o -c /mnt/d/Python_ver2/TensorCore_python_wsl2/include/tensor_bind.cc",
55
"file": "/mnt/d/Python_ver2/TensorCore_python_wsl2/include/tensor_bind.cc"
66
}
77
]

include/tensor_bind.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ std::string tensor_to_string(const Tensor t)
3030
return osstream.str();
3131
}
3232

33-
PYBIND11_MODULE(tensor, m)
33+
PYBIND11_MODULE(tensor2, m)
3434
{
3535
pybind11::class_<Tensor>(m, "Tensor")
3636
.def(pybind11::init())

0 commit comments

Comments
 (0)