Skip to content

Commit

Permalink
修复Win32Demo编译
Browse files Browse the repository at this point in the history
  • Loading branch information
cgli committed Dec 1, 2024
1 parent f9ea416 commit 02de5cb
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 5 deletions.
12 changes: 9 additions & 3 deletions example/Android/LLMAssistant/app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,23 @@ set(PROJECT_SOURCE
../../../../../../../src/template.cpp
../../../../../../../src/devices/cpu/cpudevice.cpp
../../../../../../../src/devices/cpu/cpudevicebatch.cpp
../../../../../../../src/devices/cpu/linear.cpp
../../../../../../../src/models/basellm.cpp
../../../../../../../src/models/bert.cpp
../../../../../../../src/models/chatglm.cpp
../../../../../../../src/models/cogvlm.cpp
../../../../../../../src/models/deepseekv2.cpp
../../../../../../../src/models/moss.cpp
../../../../../../../src/models/llama.cpp
../../../../../../../src/models/qwen.cpp
../../../../../../../src/models/glm.cpp
../../../../../../../src/models/graphllm.cpp
../../../../../../../src/models/llama.cpp
../../../../../../../src/models/internlm2.cpp
../../../../../../../src/models/minicpm.cpp
../../../../../../../src/models/minicpm3.cpp
../../../../../../../src/models/moe.cpp
../../../../../../../src/models/moss.cpp
../../../../../../../src/models/phi3.cpp
../../../../../../../src/models/qwen.cpp
../../../../../../../src/models/xlmroberta.cpp
)

include_directories(
Expand Down
19 changes: 19 additions & 0 deletions example/Win32Demo/fastllm-gpu.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,32 @@
<ItemGroup>
<ClInclude Include="..\..\include\device.h" />
<ClInclude Include="..\..\include\devices\cpu\alivethreadpool.h" />
<ClInclude Include="..\..\include\devices\cpu\computeutils.h" />
<ClInclude Include="..\..\include\devices\cpu\cpudevice.h" />
<ClInclude Include="..\..\include\devices\cpu\cputhreadpool.h" />
<ClInclude Include="..\..\include\devices\cuda\cudadevice.h" />
<ClInclude Include="..\..\include\devices\multicuda\multicudadevice.h" />
<ClInclude Include="..\..\include\executor.h" />
<ClInclude Include="..\..\include\fastllm.h" />
<ClInclude Include="..\..\include\graph.h" />
<ClInclude Include="..\..\include\model.h" />
<ClInclude Include="..\..\include\models\basellm.h" />
<ClInclude Include="..\..\include\models\bert.h" />
<ClInclude Include="..\..\include\models\chatglm.h" />
<ClInclude Include="..\..\include\models\cogvlm.h" />
<ClInclude Include="..\..\include\models\deepseekv2.h" />
<ClInclude Include="..\..\include\models\factoryllm.h" />
<ClInclude Include="..\..\include\models\glm.h" />
<ClInclude Include="..\..\include\models\graphllm.h" />
<ClInclude Include="..\..\include\models\internlm2.h" />
<ClInclude Include="..\..\include\models\llama.h" />
<ClInclude Include="..\..\include\models\minicpm.h" />
<ClInclude Include="..\..\include\models\minicpm3.h" />
<ClInclude Include="..\..\include\models\moe.h" />
<ClInclude Include="..\..\include\models\moss.h" />
<ClInclude Include="..\..\include\models\phi3.h" />
<ClInclude Include="..\..\include\models\qwen.h" />
<ClInclude Include="..\..\include\models\xlmroberta.h" />
<ClInclude Include="..\..\include\template.h" />
<ClInclude Include="..\..\include\utils\armMath.h" />
<ClInclude Include="..\..\include\utils\utils.h" />
Expand All @@ -225,37 +231,50 @@
<ClCompile Include="..\..\src\device.cpp" />
<ClCompile Include="..\..\src\devices\cpu\cpudevice.cpp" />
<ClCompile Include="..\..\src\devices\cpu\cpudevicebatch.cpp" />
<ClCompile Include="..\..\src\devices\cpu\linear.cpp" />
<ClCompile Include="..\..\src\devices\cuda\cudadevice.cpp" />
<ClCompile Include="..\..\src\devices\cuda\cudadevicebatch.cpp" />
<ClCompile Include="..\..\src\devices\multicuda\multicudadevice.cpp" />
<ClCompile Include="..\..\src\executor.cpp" />
<ClCompile Include="..\..\src\fastllm.cpp" />
<ClCompile Include="..\..\src\graph.cpp" />
<ClCompile Include="..\..\src\model.cpp" />
<ClCompile Include="..\..\src\models\basellm.cpp" />
<ClCompile Include="..\..\src\models\bert.cpp" />
<ClCompile Include="..\..\src\models\chatglm.cpp" />
<ClCompile Include="..\..\src\models\cogvlm.cpp" />
<ClCompile Include="..\..\src\models\deepseekv2.cpp" />
<ClCompile Include="..\..\src\models\glm.cpp" />
<ClCompile Include="..\..\src\models\graphllm.cpp" />
<ClCompile Include="..\..\src\models\graph\fastllmjson.cpp" />
<ClCompile Include="..\..\src\models\graph\phi3.cpp" />
<ClCompile Include="..\..\src\models\graph\qwen2.cpp" />
<ClCompile Include="..\..\src\models\graph\telechat.cpp" />
<ClCompile Include="..\..\src\models\internlm2.cpp" />
<ClCompile Include="..\..\src\models\llama.cpp" />
<ClCompile Include="..\..\src\models\minicpm.cpp" />
<ClCompile Include="..\..\src\models\minicpm3.cpp" />
<ClCompile Include="..\..\src\models\moe.cpp" />
<ClCompile Include="..\..\src\models\moss.cpp" />
<ClCompile Include="..\..\src\models\phi3.cpp" />
<ClCompile Include="..\..\src\models\qwen.cpp" />
<ClCompile Include="..\..\src\models\xlmroberta.cpp" />
<ClCompile Include="..\..\src\template.cpp" />
<ClCompile Include="..\..\third_party\json11\json11.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\include\devices\cuda\fastllm-cuda.cuh">
<FileType>Document</FileType>
</ClInclude>
<ClInclude Include="..\..\include\devices\multicuda\fastllm-multicuda.cuh">
<FileType>Document</FileType>
</ClInclude>
<CudaCompile Include="..\..\src\devices\cuda\fastllm-cuda.cu">
<FileType>Document</FileType>
</CudaCompile>
<CudaCompile Include="..\..\src\devices\multicuda\fastllm-multicuda.cu">
<FileType>Document</FileType>
</CudaCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>
55 changes: 53 additions & 2 deletions example/Win32Demo/fastllm-gpu.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<Filter Include="源文件\third_party">
<UniqueIdentifier>{385ba64f-d978-469c-af0c-498ec33a1bb7}</UniqueIdentifier>
</Filter>
<Filter Include="头文件\devices\multicuda">
<UniqueIdentifier>{917a368b-3a0e-476b-9f35-6af4433aca16}</UniqueIdentifier>
</Filter>
<Filter Include="源文件\devices\multicuda">
<UniqueIdentifier>{9fbf8989-df11-4dc7-9697-d69d10b7f0bf}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\include\device.h">
Expand Down Expand Up @@ -78,6 +84,9 @@
<ClInclude Include="..\..\include\models\chatglm.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\cogvlm.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\deepseekv2.h">
<Filter>头文件\models</Filter>
</ClInclude>
Expand All @@ -99,21 +108,33 @@
<ClInclude Include="..\..\include\models\minicpm.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\minicpm3.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\moe.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\moss.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\phi3.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\qwen.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\cpu\cpudevice.h">
<Filter>头文件\devices\cpu</Filter>
<ClInclude Include="..\..\include\models\xlmroberta.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\cpu\alivethreadpool.h">
<Filter>头文件\devices\cpu</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\cpu\computeutils.h">
<Filter>头文件\devices\cpu</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\cpu\cpudevice.h">
<Filter>头文件\devices\cpu</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\cpu\cputhreadpool.h">
<Filter>头文件\devices\cpu</Filter>
</ClInclude>
Expand All @@ -129,6 +150,12 @@
<ClInclude Include="..\..\include\devices\cuda\fastllm-cuda.cuh">
<Filter>头文件\devices\cuda</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\multicuda\multicudadevice.h">
<Filter>头文件\devices\multicuda</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\multicuda\fastllm-multicuda.cuh">
<Filter>头文件\devices\multicuda</Filter>
</ClInclude>
<ClInclude Include="..\..\third_party\json11\json11.hpp">
<Filter>头文件\third_party</Filter>
</ClInclude>
Expand Down Expand Up @@ -161,6 +188,9 @@
<ClCompile Include="..\..\src\models\chatglm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\cogvlm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\deepseekv2.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
Expand All @@ -179,18 +209,30 @@
<ClCompile Include="..\..\src\models\minicpm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\minicpm3.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\moe.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\moss.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\phi3.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\qwen.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\xlmroberta.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\graph\fastllmjson.cpp">
<Filter>源文件\models\graph</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\graph\phi3.cpp">
<Filter>源文件\models\graph</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\graph\qwen2.cpp">
<Filter>源文件\models\graph</Filter>
</ClCompile>
Expand All @@ -203,12 +245,18 @@
<ClCompile Include="..\..\src\devices\cpu\cpudevicebatch.cpp">
<Filter>源文件\devices\cpu</Filter>
</ClCompile>
<ClCompile Include="..\..\src\devices\cpu\linear.cpp">
<Filter>源文件\devices\cpu</Filter>
</ClCompile>
<ClCompile Include="..\..\src\devices\cuda\cudadevice.cpp">
<Filter>源文件\devices\cuda</Filter>
</ClCompile>
<ClCompile Include="..\..\src\devices\cuda\cudadevicebatch.cpp">
<Filter>源文件\devices\cuda</Filter>
</ClCompile>
<ClCompile Include="..\..\src\devices\multicuda\multicudadevice.cpp">
<Filter>源文件\devices\multicuda</Filter>
</ClCompile>
<ClCompile Include="..\..\third_party\json11\json11.cpp">
<Filter>源文件\third_party</Filter>
</ClCompile>
Expand All @@ -217,5 +265,8 @@
<CudaCompile Include="..\..\src\devices\cuda\fastllm-cuda.cu">
<Filter>源文件\devices\cuda</Filter>
</CudaCompile>
<CudaCompile Include="..\..\src\devices\multicuda\fastllm-multicuda.cu">
<Filter>源文件\devices\multicuda</Filter>
</CudaCompile>
</ItemGroup>
</Project>
11 changes: 11 additions & 0 deletions example/Win32Demo/fastllm.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
<ItemGroup>
<ClInclude Include="..\..\include\device.h" />
<ClInclude Include="..\..\include\devices\cpu\alivethreadpool.h" />
<ClInclude Include="..\..\include\devices\cpu\computeutils.h" />
<ClInclude Include="..\..\include\devices\cpu\cpudevice.h" />
<ClInclude Include="..\..\include\devices\cpu\cputhreadpool.h" />
<ClInclude Include="..\..\include\executor.h" />
Expand All @@ -182,16 +183,20 @@
<ClInclude Include="..\..\include\models\basellm.h" />
<ClInclude Include="..\..\include\models\bert.h" />
<ClInclude Include="..\..\include\models\chatglm.h" />
<ClInclude Include="..\..\include\models\cogvlm.h" />
<ClInclude Include="..\..\include\models\deepseekv2.h" />
<ClInclude Include="..\..\include\models\factoryllm.h" />
<ClInclude Include="..\..\include\models\glm.h" />
<ClInclude Include="..\..\include\models\graphllm.h" />
<ClInclude Include="..\..\include\models\internlm2.h" />
<ClInclude Include="..\..\include\models\llama.h" />
<ClInclude Include="..\..\include\models\minicpm.h" />
<ClInclude Include="..\..\include\models\minicpm3.h" />
<ClInclude Include="..\..\include\models\moe.h" />
<ClInclude Include="..\..\include\models\moss.h" />
<ClInclude Include="..\..\include\models\phi3.h" />
<ClInclude Include="..\..\include\models\qwen.h" />
<ClInclude Include="..\..\include\models\xlmroberta.h" />
<ClInclude Include="..\..\include\template.h" />
<ClInclude Include="..\..\include\utils\armMath.h" />
<ClInclude Include="..\..\include\utils\utils.h" />
Expand All @@ -201,25 +206,31 @@
<ClCompile Include="..\..\src\device.cpp" />
<ClCompile Include="..\..\src\devices\cpu\cpudevice.cpp" />
<ClCompile Include="..\..\src\devices\cpu\cpudevicebatch.cpp" />
<ClCompile Include="..\..\src\devices\cpu\linear.cpp" />
<ClCompile Include="..\..\src\executor.cpp" />
<ClCompile Include="..\..\src\fastllm.cpp" />
<ClCompile Include="..\..\src\graph.cpp" />
<ClCompile Include="..\..\src\model.cpp" />
<ClCompile Include="..\..\src\models\basellm.cpp" />
<ClCompile Include="..\..\src\models\bert.cpp" />
<ClCompile Include="..\..\src\models\chatglm.cpp" />
<ClCompile Include="..\..\src\models\cogvlm.cpp" />
<ClCompile Include="..\..\src\models\deepseekv2.cpp" />
<ClCompile Include="..\..\src\models\glm.cpp" />
<ClCompile Include="..\..\src\models\graphllm.cpp" />
<ClCompile Include="..\..\src\models\graph\fastllmjson.cpp" />
<ClCompile Include="..\..\src\models\graph\phi3.cpp" />
<ClCompile Include="..\..\src\models\graph\qwen2.cpp" />
<ClCompile Include="..\..\src\models\graph\telechat.cpp" />
<ClCompile Include="..\..\src\models\internlm2.cpp" />
<ClCompile Include="..\..\src\models\llama.cpp" />
<ClCompile Include="..\..\src\models\minicpm.cpp" />
<ClCompile Include="..\..\src\models\minicpm3.cpp" />
<ClCompile Include="..\..\src\models\moe.cpp" />
<ClCompile Include="..\..\src\models\moss.cpp" />
<ClCompile Include="..\..\src\models\phi3.cpp" />
<ClCompile Include="..\..\src\models\qwen.cpp" />
<ClCompile Include="..\..\src\models\xlmroberta.cpp" />
<ClCompile Include="..\..\src\template.cpp" />
<ClCompile Include="..\..\third_party\json11\json11.cpp" />
</ItemGroup>
Expand Down
27 changes: 27 additions & 0 deletions example/Win32Demo/fastllm.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<ClInclude Include="..\..\include\models\chatglm.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\cogvlm.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\deepseekv2.h">
<Filter>头文件\models</Filter>
</ClInclude>
Expand All @@ -99,15 +102,24 @@
<ClInclude Include="..\..\include\models\minicpm.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\minicpm3.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\moe.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\moss.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\phi3.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\qwen.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\models\xlmroberta.h">
<Filter>头文件\models</Filter>
</ClInclude>
<ClInclude Include="..\..\include\devices\cpu\cpudevice.h">
<Filter>头文件\devices\cpu</Filter>
</ClInclude>
Expand Down Expand Up @@ -155,6 +167,9 @@
<ClCompile Include="..\..\src\models\chatglm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\cogvlm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\deepseekv2.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
Expand All @@ -173,18 +188,30 @@
<ClCompile Include="..\..\src\models\minicpm.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\minicpm3.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\moe.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\moss.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\phi3.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\qwen.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\xlmroberta.cpp">
<Filter>源文件\models</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\graph\fastllmjson.cpp">
<Filter>源文件\models\graph</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\graph\phi3.cpp">
<Filter>源文件\models\graph</Filter>
</ClCompile>
<ClCompile Include="..\..\src\models\graph\qwen2.cpp">
<Filter>源文件\models\graph</Filter>
</ClCompile>
Expand Down

0 comments on commit 02de5cb

Please sign in to comment.