Commit graph

1161 commits

Author SHA1 Message Date
Alejandro Saucedo
2e258610aa
Added initial example for automated CI
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-26 15:42:18 +00:00
Alejandro Saucedo
c4a4dc4908
Added initial example for automated CI
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-26 15:41:58 +00:00
Alejandro Saucedo
8a3d2277b7
Added initial example for automated CI
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-26 15:39:23 +00:00
Alejandro Saucedo
637bfb1bc0
Merge pull request #312 from KomputeProject/axsaucedo-patch-5
Updating default headers to Vulkan v1.3.231
2022-11-26 07:48:03 +00:00
Alejandro Saucedo
0cd2d7a52a
Updating default headers to Vulkan v1.3.231
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-26 07:44:30 +00:00
Alejandro Saucedo
a40adf8335
Merge pull request #311 from hungrymonkey/fixbuilderror
Fixed build error on gcc 12
2022-11-26 07:41:45 +00:00
hungrymonkey
9eac80f048 Fixed build error on gcc 12
Steps to reproduce

$git clone https://github.com/KomputeProject/kompute.git
$cmake -Bbuild
$cd build
$make

$gcc (SUSE Linux) 12.2.1 20221020 [revision 0aaef83351473e8f4eb774f8f999bbe87a4866d7]
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 $lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Tumbleweed
Release:        20221124
Codename:       n/a

Error log
In file included from /home/doof/gitrepo/kompute/src/include/kompute/operations/OpTensorCopy.hpp:6,
                 from /home/doof/gitrepo/kompute/src/OpTensorCopy.cpp:3:
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:55:27: error: expected ‘)’ before ‘<’ token
   55 |     Tensor(std::shared_ptr<vk::PhysicalDevice> physicalDevice,
      |           ~               ^
      |                           )
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:108:30: error: ‘std::shared_ptr’ has not been declared
  108 |                         std::shared_ptr<Tensor> copyFromTensor);
      |                              ^~~~~~~~~~
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:108:40: error: expected ‘,’ or ‘...’ before ‘<’ token
  108 |                         std::shared_ptr<Tensor> copyFromTensor);
      |                                        ^
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:256:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
  256 |     std::shared_ptr<vk::PhysicalDevice> mPhysicalDevice;
      |          ^~~~~~~~~~
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:6:1: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
    5 | #include "logger/Logger.hpp"
  +++ |+#include <memory>
    6 | #include <string>
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:257:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
  257 |     std::shared_ptr<vk::Device> mDevice;
      |          ^~~~~~~~~~
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:257:5: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
  257 |     std::shared_ptr<vk::Device> mDevice;
      |     ^~~
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:260:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
  260 |     std::shared_ptr<vk::Buffer> mPrimaryBuffer;
      |          ^~~~~~~~~~
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:260:5: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
  260 |     std::shared_ptr<vk::Buffer> mPrimaryBuffer;
      |     ^~~
/home/doof/gitrepo/kompute/src/include/kompute/Tensor.hpp:262:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
  262 |     std::shared_ptr<vk::Buffer> mStagingBuffer;

Final result

$make
[ 16%] Built target fmt
[ 27%] Built target kp_shader
[ 38%] Built target kp_logger
[ 44%] Building CXX object src/CMakeFiles/kompute.dir/Algorithm.cpp.o
[ 50%] Building CXX object src/CMakeFiles/kompute.dir/Manager.cpp.o
[ 55%] Building CXX object src/CMakeFiles/kompute.dir/OpAlgoDispatch.cpp.o
[ 61%] Building CXX object src/CMakeFiles/kompute.dir/OpMemoryBarrier.cpp.o
[ 66%] Building CXX object src/CMakeFiles/kompute.dir/OpTensorCopy.cpp.o
[ 72%] Building CXX object src/CMakeFiles/kompute.dir/OpTensorSyncDevice.cpp.o
[ 77%] Building CXX object src/CMakeFiles/kompute.dir/OpTensorSyncLocal.cpp.o
[ 83%] Building CXX object src/CMakeFiles/kompute.dir/Sequence.cpp.o
[ 88%] Building CXX object src/CMakeFiles/kompute.dir/Tensor.cpp.o
[ 94%] Building CXX object src/CMakeFiles/kompute.dir/Core.cpp.o
[100%] Linking CXX static library ../lib/libkompute.a
[100%] Built target kompute

Fixes Issue #310

Signed-off-by: hungrymonkey <tedchang2010@gmail.com>
2022-11-25 19:35:50 -08:00
Alejandro Saucedo
6b8b6e864a
Merge pull request #309 from KomputeProject/1_3_vulkan_upgrade
Upgrading to Vulkan 1.3
2022-11-20 13:52:43 +00:00
Alejandro Saucedo
b23e925636
Removed parallel as caused issues in build
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 13:47:15 +00:00
Alejandro Saucedo
06e5c159f5
Updating cmake build from fork
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:57 +00:00
Alejandro Saucedo
a48003afef
Reduced size of swiftshader 2gb->150mb
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:56 +00:00
Alejandro Saucedo
c501ff6dca
Updated cpp tests to use latest images
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:56 +00:00
Alejandro Saucedo
d9075cdbec
Updated python tests to use new images
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:56 +00:00
Alejandro Saucedo
227a6cf998
Updated kompute to use latest vulkan version based on sdk image
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:55 +00:00
Alejandro Saucedo
26c5dc8116
Updated swiftshader image to rebuild with latest
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:55 +00:00
Alejandro Saucedo
57ffe865b8
Updated vulkan image to use latest sdk
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:45:54 +00:00
Alejandro Saucedo
e719cedf55
Updated makefile to use reference vars
Signed-off-by: Alejandro Saucedo <axsauze@gmail.com>
2022-11-20 12:32:42 +00:00
Alejandro Saucedo
5a40c57438
Merge pull request #307 from COM8/fetch_content_remote_cleanup
Updated the fetch_content git repo and commit hash
2022-11-15 13:30:34 +00:00
Fabian Sauter
d59b44d853 Updated the fetch_content git repo and commit hash
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-11-15 13:20:36 +01:00
Alejandro Saucedo
1344ece4ac
Merge pull request #287 from COM8/master
Refactor build system
2022-11-14 20:08:36 +00:00
Fabian Sauter
13db27cceb Updated the Android example kp version
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-10-28 11:58:10 +02:00
Fabian Sauter
099f0e4725 Loading vk lib dynamically on instance creation
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-10-28 11:58:10 +02:00
Fabian Sauter
82c2460166 Removed old Android init VK toast
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-10-27 14:26:26 +02:00
Fabian Sauter
6506aba466 Fixed building Kompute for Android
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-10-27 14:24:41 +02:00
Fabian Sauter
3d6c5af302 Fixed unused var in Manager
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-10-27 14:16:16 +02:00
Fabian Sauter
eb00e02708 Fixed Vulkan validation layer
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-10-27 14:16:16 +02:00
Alejandro Saucedo
e8f051fc66
Merge pull request #301 from MiroPalmu/master
Fixes two mistakes in comments and removes one unused vk::MappedMemoryRange
2022-09-11 10:25:42 +01:00
Miro Palmu
604f8849a0 Commit from pr 294
Signed-off-by: Miro Palmu <miro.palmu@helsinki.fi>
2022-09-10 23:03:55 +03:00
Miro Palmu
d52b3d41b8 Fixed typo
Signed-off-by: Miro Palmu <miro.palmu@helsinki.fi>
2022-09-10 23:03:55 +03:00
Miro Palmu
63b0b8a4ae Fixed documentation
Signed-off-by: Miro Palmu <miro.palmu@helsinki.fi>
2022-09-10 23:03:55 +03:00
Fabian Sauter
a011673a89 Enabling Vulkan build in headers for cpp test
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 13:22:59 +02:00
Fabian Sauter
513934219a Using Vulkan build in headers for python tests
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 13:19:10 +02:00
Fabian Sauter
ffc2dcc0b3 Fixed KOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADERS
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 13:00:26 +02:00
Fabian Sauter
284ab873ea Fixed Windows make commands
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 11:54:43 +02:00
Fabian Sauter
2013bf9c68 Increased the CMake minimum required version to 3.20
Turns out `OUTPUT` for `add_custom_command` requires CMake 3.20. https://cmake.org/cmake/help/latest/command/add_custom_command.html

Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 10:35:22 +02:00
Fabian Sauter
22f6f43a86 Updated outdated Windows build flags
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 10:32:45 +02:00
Fabian Sauter
d1a80ded02 Use shared (DLL) run-time lib even when Google Test is built as static lib
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-28 10:06:15 +02:00
Fabian Sauter
53a3753caf Fixed deviceName conversion
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 13:01:02 +02:00
Fabian Sauter
732704a9ee Removed .data() for deviceName
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
731b74610d Limiting the number of parallel builds for python CI
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
7ad254e07a Removed "--paralle 1" from building python again
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
7673db6959 Replaced set and list to string with fmt::join
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
089f258968 Updated the build system docs
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
ac1831306a Setting the correct env for c++ test execution in the CI
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
c43b623875 Running tests via the Makefile
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
9f2f3045f1 Typo
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
48a096c736 Typo
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
84bb62f397 Switched back to a single executable for test
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
f2457b32c7 Python building only with one job in parallel
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00
Fabian Sauter
4b7e3b13f8 Fixed building Python package
Signed-off-by: Fabian Sauter <sauter.fabian@mailbox.org>
2022-07-27 12:48:46 +02:00