-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AOCL-Utils 5.0 Release with all updates.
Signed-off-by: Abhiram S <[email protected]>
- Loading branch information
1 parent
661527c
commit 91ae4d2
Showing
560 changed files
with
47,084 additions
and
5,894 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,4 +146,3 @@ WhitespaceSensitiveMacros: | |
- PP_STRINGIZE | ||
- BOOST_PP_STRINGIZE | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
Checks: '-*,-readability-identifier-length, clang-diagnostic-*,-clang-diagnostic-unused-value,clang-analyzer-*,-*,bugprone-*,performance-*,readability-*,-readability-magic-numbers,-readability-braces-around-statements,-readability-inconsistent-declaration-parameter-name,-readability-named-parameter' | ||
#HeaderFilterRegex: '' | ||
WarningsAsErrors: '*' | ||
AnalyzeTemporaryDtors: false | ||
WarningsAsErrors: '' | ||
FormatStyle: file | ||
User: chrjacob | ||
CheckOptions: | ||
llvm-else-after-return.WarnOnConditionVariables: 'false' | ||
modernize-loop-convert.MinConfidence: reasonable | ||
modernize-replace-auto-ptr.IncludeStyle: llvm | ||
modernize-pass-by-value.IncludeStyle: llvm | ||
google-readability-namespace-comments.ShortNamespaceLines: '10' | ||
google-readability-namespace-comments.SpacesBeforeComments: '2' | ||
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true' | ||
google-readability-braces-around-statements.ShortStatementLines: '1' | ||
cert-err33-c.CheckedFunctions: '::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;' | ||
modernize-loop-convert.MaxCopySize: '16' | ||
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU' | ||
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false' | ||
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false' | ||
modernize-use-nullptr.NullMacros: 'NULL' | ||
llvm-qualified-auto.AddConstToQualified: 'false' | ||
modernize-loop-convert.NamingStyle: CamelCase | ||
llvm-else-after-return.WarnOnUnfixable: 'false' | ||
google-readability-function-size.StatementThreshold: '800' | ||
readability-identifier-naming.NamespaceCase: CamelCase | ||
readability-identifier-naming.VariableCase: camelBack | ||
readability-identifier-naming.FunctionCase: camelBack | ||
readability-identifier-naming.ConstexprVariableCase: UPPER_CASE | ||
readability-identifier-naming.ConstexprFunctionCase: camelBack | ||
readability-identifier-naming.ClassCase: CamelCase | ||
readability-identifier-naming.ConstexprMethodCase: CamelCase | ||
readability-identifier-naming.EnumCase: UPPER_CASE | ||
readability-identifier-naming.StructCase: CamelCase | ||
readability-identifier-naming.GlobalConstantCase: UPPER_CASE | ||
readability-identifier-naming.GlobalConstantPointerCase: UPPER_CASE | ||
readability-identifier-naming.GlobalFunctionCase: camelBack | ||
readability-identifier-naming.MemberCase: lower_case | ||
readability-identifier-naming.MemberPrefix: 'm_' | ||
readability-identifier-naming.MemberSuffix: '' | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
.vscode | ||
.ccls | ||
.dir-locals.el | ||
.clang-format | ||
**/CMakeCache.txt | ||
**/CMakeFiles | ||
CTestTestfile.cmake | ||
Makefile | ||
cmake_install.cmake | ||
docs/Makefile | ||
docs/cmake_install.cmake | ||
docs/internal/Makefile | ||
docs/internal/cmake_install.cmake | ||
lib/Makefile | ||
lib/cmake_install.cmake | ||
libcpu.so | ||
examples/Makefile | ||
examples/cmake_install.cmake | ||
tests/CTestTestfile.cmake | ||
tests/Makefile | ||
tests/cmake_install.cmake | ||
build/ | ||
docs/doxygen/html/ | ||
.vscode | ||
.ccls | ||
.dir-locals.el | ||
**/CMakeCache.txt | ||
**/CMakeFiles | ||
CTestTestfile.cmake | ||
Makefile | ||
cmake_install.cmake | ||
docs/Makefile | ||
docs/cmake_install.cmake | ||
docs/internal/Makefile | ||
docs/internal/cmake_install.cmake | ||
lib/Makefile | ||
lib/cmake_install.cmake | ||
libcpu.so | ||
examples/Makefile | ||
examples/cmake_install.cmake | ||
tests/CTestTestfile.cmake | ||
tests/Makefile | ||
tests/cmake_install.cmake | ||
build/ | ||
docs/.doxygen | ||
docs/_doxygen | ||
docs/.sphinx | ||
docs/sphinx | ||
sanity_test/ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Copyright (C) 2024, Advanced Micro Devices. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# 3. Neither the name of the copyright holder nor the names of its contributors | ||
# may be used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
find_program(SPHINX_EXECUTABLE NAMES sphinx-build | ||
HINTS | ||
$ENV{SPHINX_DIR} | ||
PATH_SUFFIXES bin | ||
DOC "Sphinx documentation generator" | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
find_package_handle_standard_args(Sphinx DEFAULT_MSG | ||
SPHINX_EXECUTABLE | ||
) | ||
|
||
mark_as_advanced(SPHINX_EXECUTABLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
prefix=@CMAKE_INSTALL_PREFIX@ | ||
exec_prefix=${prefix} | ||
libdir=${prefix}/@AU_INSTALL_LIB_DIR@ | ||
includedir=${prefix}/@AU_INSTALL_INCLUDE_DIR@ | ||
|
||
Name: @PROJECT_FULL_NAME@ | ||
Description: @AU_DESCRIPTION@ | ||
Version: @AU_VERSION_STRING@ | ||
Libs: -L${libdir} -laoclutils | ||
Libs.private: @CMAKE_CXX_LINK_FLAGS@ | ||
Cflags: -I${includedir} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Copyright (C) 2024, Advanced Micro Devices. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# 3. Neither the name of the copyright holder nor the names of its contributors | ||
# may be used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
|
||
set(AU_CXX_FLAGS_COMMON "-W4 -Wextra" "-fno-rtti" "-fno-exceptions") | ||
set(AU_CXX_FLAGS_DEBUG | ||
"-Wsuggest-final-types" | ||
"-Wsuggest-final-methods" | ||
"-Wsuggest-override" | ||
"-g") | ||
set(AU_CXX_FLAGS_RELEASE "-O3" "-Wno-unused") | ||
|
||
list(APPEND CXX_FLAGS_DEBUG "${AU_CXX_FLAGS_COMMON} ${AU_CXX_FLAGS_DEBUG}") | ||
list(APPEND CXX_FLAGS_RELEASE "${AU_CXX_FLAGS_COMMON} ${AU_CXX_FLAGS_RELEASE}") | ||
|
||
# Note that CMAKE_REQUIRED_FLAGS must be a string, not a list | ||
#set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=${CXX_STD}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Copyright (C) 2022-2024, Advanced Micro Devices. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# 3. Neither the name of the copyright holder nor the names of its contributors | ||
# may be used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
|
||
set(AU_CXX_FLAGS_COMMON "-Wall -Wextra" "-fno-rtti" "-fno-exceptions") | ||
set(AU_CXX_FLAGS_DEBUG | ||
"-Wsuggest-final-types" | ||
"-Wsuggest-final-methods" | ||
"-Wsuggest-override" | ||
"-g") | ||
set(AU_CXX_FLAGS_RELEASE "-O3" "-Wno-unused") | ||
|
||
list(APPEND CXX_FLAGS_DEBUG "${AU_CXX_FLAGS_COMMON} ${AU_CXX_FLAGS_DEBUG}") | ||
list(APPEND CXX_FLAGS_RELEASE "${AU_CXX_FLAGS_COMMON} ${AU_CXX_FLAGS_RELEASE}") | ||
|
||
# Note that CMAKE_REQUIRED_FLAGS must be a string, not a list | ||
#set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=${CXX_STD}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# | ||
# Copyright (C) 2022-2024, Advanced Micro Devices. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# 3. Neither the name of the copyright holder nor the names of its contributors | ||
# may be used to endorse or promote products derived from this software | ||
# without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
# au_add_application(<name> PACKAGE <package> | ||
# SOURCES source... | ||
# HEADERS headers... | ||
# [LIBS component...] | ||
# ) | ||
# | ||
if(NOT DEFINED AU_CXX_STANDARD) | ||
set(AU_CXX_STANDARD 17) | ||
endif() | ||
set(CMAKE_CXX_STANDARD ${AU_CXX_STANDARD}) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
function(au_add_application NAME) | ||
set(fPrefix APP) | ||
set(fOptions ) | ||
set(fOneArg ) | ||
set(fMultiArgs "INCLUDES;SOURCES;HEADERS;LIBS") | ||
|
||
cmake_parse_arguments( | ||
${fPrefix} | ||
"${fOptions}" | ||
"${fOneArg}" | ||
"${fMultiArgs}" | ||
${ARGN} | ||
) | ||
|
||
#cmake_parse_arguments(APP "" "PACKAGE" "SOURCES;COMPONENTS" ${ARGN}) | ||
|
||
add_executable(${NAME} ${APP_SOURCES}) | ||
add_executable(${APP_PACKAGE}::${NAME} ALIAS ${NAME}) | ||
|
||
if(DEFINED APP_LIBS) | ||
target_link_directories(${NAME} PRIVATE ${CMAKE_BINARY_DIR}/Library) | ||
target_link_libraries(${NAME} | ||
PRIVATE | ||
${APP_LIBS} | ||
) | ||
endif() | ||
if(DEFINED APP_INCLUDES) | ||
target_include_directories(${NAME} PRIVATE ${APP_INCLUDES}) | ||
endif() | ||
|
||
endfunction(au_add_application) |
Oops, something went wrong.