Updated to have top level makefile

This commit is contained in:
Alejandro Saucedo 2020-08-24 18:55:55 +01:00
parent 4f1c46b9ae
commit ecc9a1e273
3 changed files with 6 additions and 19 deletions

17
.gitignore vendored
View file

@ -177,21 +177,6 @@ external/boost/
tmp/
# CMake
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles/
CMakeScripts
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
Makefile
*.vcxproj
*.vcxproj.filters
*.vcxproj.user
Win32/
Debug/
build/

View file

@ -16,9 +16,11 @@ VCPKG=/c/Users/axsau/Programming/lib/vcpkg/vcpkg
####### Main Target Rules #######
run_cmake:
cmake \
wcmake \
-Bbuild \
-DCMAKE_TOOLCHAIN_FILE=C:\\Users\\axsau\\Programming\\lib\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
-G "Visual Studio 16 2019"
build: clean build_shaders
$(CC) \

2
src/Tensor.cpp Normal file → Executable file
View file

@ -18,7 +18,7 @@ Tensor::Tensor(std::vector<uint32_t> data, TensorTypes tensorType)
SPDLOG_DEBUG("Kompute Tensor constructor data: {}, and type: {}", data, tensorType);
this->mData = data;
this->mShape = { data.size() };
this->mShape = { static_cast<uint32_t>(data.size()) };
this->mTensorType = tensorType;
}