Added various files including security

This commit is contained in:
Alejandro Saucedo 2021-07-21 21:42:35 +01:00
parent ddc879d692
commit 17a541706b
3 changed files with 41 additions and 0 deletions

View file

@ -68,6 +68,7 @@ mk_cmake:
-DKOMPUTE_OPT_BUILD_SINGLE_HEADER=1 \
-DKOMPUTE_OPT_ENABLE_SPDLOG=1 \
-DKOMPUTE_OPT_CODE_COVERAGE=1 \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
$(MK_CMAKE_EXTRA_FLAGS) \
-G "Unix Makefiles"
@ -199,6 +200,9 @@ win_build_xxd:
format:
$(CLANG_FORMAT_BIN) -i -style="{BasedOnStyle: mozilla, IndentWidth: 4}" src/*.cpp src/include/kompute/*.hpp test/*cpp
static_scan:
cppcheck --project=build/compile_commands.json -iexternal/
build_changelog:
docker run --rm -it -v "$(PWD)":/usr/local/src/your-app -e CHANGELOG_GITHUB_TOKEN=${CHANGELOG_GITHUB_TOKEN} ferrarimarco/github-changelog-generator:1.15.2 -u KomputeFoundation -p kompute
chmod 664 CHANGELOG.md # (Read+Write, Read+Write, Read)

13
SECURITY.md Normal file
View file

@ -0,0 +1,13 @@
# Security Policy
This document provides an overview of the security policy of Kompute.
Kompute aims to follow the two following policies:
* Keep dependencies up to date
* Identify and address common vulnerabilities and exposures
## Reporting a Vulnerability
If you identify a vulnerability the best way to report it is by sending an email to the team via a@ethical.institute. The discussion can then take place there on next steps (ie updating library, reaching out to 3rd party projects, etc).

View file

@ -587,6 +587,8 @@ static const unsigned int shaders_glsl_logisticregression_comp_spv_len = 4816;
}
#endif // define SHADEROP_SHADERLOGISTICREGRESSION_HPP
// SPDX-License-Identifier: Apache-2.0
#if VK_USE_PLATFORM_ANDROID_KHR
#include <android/log.h>
#include <kompute_vk_ndk_wrapper.hpp>
@ -725,6 +727,8 @@ extern py::object kp_debug, kp_info, kp_warning, kp_error;
#endif // KOMPUTE_SPDLOG_ENABLED
#endif // KOMPUTE_LOG_OVERRIDE
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1062,6 +1066,8 @@ class TensorT : public Tensor
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1241,6 +1247,8 @@ class Algorithm
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1301,6 +1309,8 @@ class OpBase
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1372,6 +1382,8 @@ private:
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1426,6 +1438,8 @@ class OpTensorCopy : public OpBase
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1481,6 +1495,8 @@ class OpTensorSyncDevice : public OpBase
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1538,6 +1554,8 @@ class OpTensorSyncLocal : public OpBase
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1600,6 +1618,8 @@ private:
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
#include <fstream>
namespace kp {
@ -1649,6 +1669,8 @@ class OpMult : public OpAlgoDispatch
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
namespace kp {
/**
@ -1939,6 +1961,8 @@ class Sequence : public std::enable_shared_from_this<Sequence>
} // End namespace kp
// SPDX-License-Identifier: Apache-2.0
#include <set>
#include <unordered_map>