1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-27 23:43:16 +00:00
Commit Graph

598 Commits

Author SHA1 Message Date
Carles Fernandez
3c17f0a9a7
Fix defect detected by Coverity Scan (uninitialized scalar variables) 2021-01-29 14:01:21 +01:00
Carles Fernandez
603cab1ead
Fix clash of the cpu_features library when volk_gnsssdr is built as a standalone library, and cpu_features was already installed by VOLK
Added new building option ENABLE_OWN_CPUFEATURES, set to ON when building gnss-sdr but set to OFF when building volk_gnsssdr standalone.
The default does no change old behavior when buiding gnss-sdr without volk_gnsssdr already installed
2021-01-11 13:57:29 +01:00
Carles Fernandez
7102677358
Bump version number 2021-01-07 19:16:54 +01:00
Carles Fernandez
ea86fb74b3
Fix for Ubuntu 19.04 2021-01-06 13:42:48 +01:00
Carles Fernandez
6b1ab274b1
Fix for GCC < 5.0 2021-01-05 10:53:32 +01:00
Carles Fernandez
68fdedb224
Remove _mm256_zeroupper() calls
Manual usage of _mm256_zeroupper() is not required and leads to miscompilation with GCC 10.2 and optimization level -O3
2021-01-04 14:07:56 +01:00
Carles Fernandez
cbdb2ad2e9
Enforce consistent function prototypes 2021-01-04 13:55:18 +01:00
Carles Fernandez
7308745f05
Apply more concise file header format
Re-license CMake scripts with BSD-3-Clause
2020-12-30 13:35:06 +01:00
Carles Fernandez
36e98856d5
Update AArch64 features to Linux 5.10 2020-12-23 12:26:08 +01:00
Carles Fernandez
a9de3d4244
Fix detection of python when using Macports 2020-12-18 13:11:26 +01:00
Carles Fernandez
fdda4edffb
Improve handling of the ORC library 2020-12-02 16:19:56 +01:00
Carles Fernandez
b56ed9187c
Check for lib64 versus lib and set LIB_SUFFIX accordingly 2020-11-30 12:05:45 +01:00
Carles Fernandez
7e1f0176f4
Make SIMD instructions work on MS Windows 2020-11-20 16:44:06 +01:00
Carles Fernandez
0c03ac4568
More robust solution for archs not supported by cpu_features 2020-10-28 18:42:17 +01:00
Carles Fernandez
d7e2f82dab
Fix for s390x arch, since cpu_features does not support it 2020-10-27 09:13:49 +01:00
Carles Fernandez
14e588a6af
Remove old CMake support, not used anymore 2020-10-25 11:33:45 +01:00
Carles Fernandez
6509656c79
Fix copyright name 2020-10-24 14:52:05 +02:00
Carles Fernandez
97a51c511d
Remove unused line 2020-10-24 13:20:55 +02:00
Carles Fernandez
33cee471f1
Find cpu_features.a file in more distributions. Update Google benchmark to 1.5.2 2020-10-24 10:48:48 +02:00
Carles Fernandez
3bc4cf2637
Fixes for old CMake 2020-10-23 22:27:45 +02:00
Carles Fernandez
7c2954c08f
Fix warning 2020-10-23 21:54:18 +02:00
Carles Fernandez
2f58c4aef1
Make cmakelint happy 2020-10-23 21:47:30 +02:00
Carles Fernandez
97224e60d2
Update cpu_features, fix integration 2020-10-23 21:36:12 +02:00
Carles Fernandez
292d084478
Merge branch 'next' of https://github.com/gnss-sdr/gnss-sdr into cpu-features 2020-10-23 19:50:42 +02:00
Carles Fernandez
c1ecd1d1be
Fix python detection when cross-compiling 2020-10-16 20:06:11 +02:00
Carles Fernandez
8aae7b6ce1
Fix for CMake 3.0 2020-08-23 09:42:35 +02:00
Carles Fernandez
c6aec7a105
Fix for CMake < 3.12 2020-08-22 12:43:02 +02:00
Carles Fernandez
8054f3bbe9
Fix for Windows 2020-08-22 12:34:03 +02:00
Carles Fernandez
d50e901caf
Fix for Windows 2020-08-22 12:27:40 +02:00
Carles Fernandez
929b9b43ad
Fix for Windows 2020-08-22 12:06:12 +02:00
Carles Fernandez
2a21ee6a54
Fix dll linkage in windows 2020-08-22 11:01:49 +02:00
Carles Fernandez
d1085af3ac
Activate usage of cpu_features 2020-08-21 16:31:57 +02:00
Carles Fernandez
cda2c998b8
Add work towards using cpu_features. Keep compatibility with old systems 2020-08-21 14:43:04 +02:00
Carles Fernandez
191e26ee17
Do not stop volk_gnsssdr building with unknown build type, just set it to None 2020-07-29 19:03:57 +02:00
Carles Fernandez
2a7731135f
Bump version number to 0.0.13 2020-07-29 08:59:47 +02:00
Carles Fernandez
499de7a9f1
Update file headers 2020-07-28 16:57:15 +02:00
Carles Fernandez
09bcd1981c Replace std::endl by \n character. There is no need to always flush the stream. 2020-07-07 18:53:50 +02:00
Carles Fernandez
0c4bdfac48
Use INT8_MIN/MAX instead of SCHAR_MIN/MAX for consistency and portability 2020-06-28 13:25:23 +02:00
Carles Fernandez
836e074f98
Add building option ENABLE_STRIP to enable the generation of stripped binaries (without debgging information). Set to OFF by default 2020-06-10 17:22:03 +02:00
Carles Fernandez
a73e08c017
Improve README files 2020-05-16 16:11:50 +02:00
Carles Fernandez
052dd1fc85
Fix Python version detection 2020-05-10 18:31:54 +02:00
Carles Fernandez
33696780bf
Do no require six module if python is 3.x 2020-05-10 18:20:20 +02:00
Carles Fernandez
a7928bf14c
Import python six module only if python is 2.7 2020-05-10 18:15:09 +02:00
Carles Fernandez
0637365d6c
Remove python-six as a dependency if Python version is 3.x 2020-05-10 17:31:39 +02:00
Carles Fernandez
b43daff65f
Fix warning in CMake 3.17 2020-05-09 12:15:54 +02:00
Carles Fernandez
7a5907eaf7
Drop compile-time CPU detection 2020-04-02 11:10:20 +02:00
Carles Fernandez
1a2f7c7d9d
Bump version to 0.0.12
Add REUSE badge to README file
2020-03-12 20:13:49 +01:00
Carles Fernandez
4b3f777425
Add cmake modules to cmakelint job and fix errors 2020-03-01 12:29:21 +01:00
Carles Fernandez
e638019d93
Fix formatting errors detected by cmakelint 2020-03-01 11:53:01 +01:00
Carles Fernandez
299cb1a2ee
Remove usage of uninitialized variables in CMake scripts
Remove all warnings emitted by cmake --warn-uninitialized ..
2020-02-29 14:33:09 +01:00
Carles Fernandez
581ba96904
Use cmake -E rm instead of -E remove if CMake >= 3.17 2020-02-28 20:57:28 +01:00
Carles Fernandez
716fa970c4
More markdown fixes 2020-02-27 19:50:08 +01:00
Carles Fernandez
17a7044add Wrap README text into 80 character-length lines, so they are easier to read from the terminal.
Formatted by https://prettier.io/, options: --parser markdown --print-width 80 --prose-wrap always
2020-02-27 18:42:43 +01:00
Carles Fernandez
c470d43432
Fix shadowed variables
See MISRA C++:2008, 2-10-2 - Identifiers declared in an inner scope shall not hide an identifier declared in an outer scope
and https://rules.sonarsource.com/cpp/RSPEC-1117\?search\=shadow
2020-02-26 22:40:00 +01:00
Carles Fernandez
0986e4a66e cpplint: Should have a space between // and comment [whitespace/comments] 2020-02-24 15:11:08 +01:00
Carles Fernandez
29c1971c24 cpplint: Should have a space between // and comment [whitespace/comments] 2020-02-24 15:05:32 +01:00
Carles Fernandez
e0b54cf8fe Rearrange attributes to simplify macros 2020-02-24 11:39:15 +01:00
Carles Fernandez
5698c9c2ea Disable complex math NaN/INFO range checking for performance 2020-02-24 11:38:18 +01:00
Carles Fernandez
ac7a77fd47
Minor fixes 2020-02-17 08:02:59 +01:00
Carles Fernandez
448995f8b0
Improve documentation 2020-02-17 08:00:52 +01:00
Carles Fernandez
0f4bd21805
Use Use C11 aligned_alloc
See https://github.com/gnuradio/volk/pull/334
2020-02-13 19:44:24 +01:00
Carles Fernandez
2ded19342f
Improve headers 2020-02-12 00:04:29 +01:00
Carles Fernandez
aeaf68fe47
Fix detection of Volk version if pkg-config is not present 2020-02-10 01:16:58 +01:00
Carles Fernandez
b7a75453d3
Fix comments syntax in Markdown 2020-02-08 10:52:42 +01:00
Carles Fernandez
955348b080
Remove trailing underscore in header guards 2020-02-08 10:10:46 +01:00
Carles Fernandez
4d0d263280
Make the software package compliant with the REUSE Specification v3.0 (see https://reuse.software/spec/)
Update license headers to SPDX format (see https://spdx.org/)
Add license to all files
Add CI job in GitHub Actions to ensure compliance
2020-02-08 01:20:02 +01:00
Carles Fernandez
0f0c3e7e1d Update links 2020-02-06 17:33:29 +01:00
Carles Fernandez
d6ec2a7b2c
Update links (mainly from http to https, fix broken links) 2020-02-05 21:24:46 +01:00
Carles Fernandez
e75a1f19d6
Update links 2020-02-05 10:20:32 +01:00
Carles Fernandez
3f7ad8d8a7
Fix markdown 2020-02-02 13:25:15 +01:00
Carles Fernandez
56608db347
Reorder README 2020-02-02 13:23:37 +01:00
Carles Fernandez
715b7dc404
Reorder README 2020-02-02 13:23:23 +01:00
Carles Fernandez
2fe4e37ae8
Add license badge and BibTex entry for reference 2020-02-01 14:47:21 +01:00
Carles Fernandez
75b2dbf10e
Improve wording, fix broken link 2020-02-01 14:27:49 +01:00
Carles Fernandez
9023f19794
Use C++ comments for final #endif in headers 2020-01-26 22:23:22 +01:00
Carles Fernandez
eb40d9dbb5
Minor fixes 2020-01-26 14:09:49 +01:00
Carles Fernandez
120032c8bd
Fix building with custom build types
None, NoOptWithASM, Coverage, O2WithASM, O3WithASM and ASAN can now be used in CMAKE_BUILD_TYPE, in addition to Debug, Release, RelWithDebInfo and MinSizeRel.
Custom build types passed to volk_gnsssdr

Handle of custom build types when building tests
Fixes for clang
2020-01-19 22:13:50 +01:00
Carles Fernandez
98ea7dc276
Fix detection of AVX and NEON
Let the compiler know where to find volk/volk_common.h when testing for AVX and NEON

Make use of __VOLK_VOLATILE

Replace <inttypes.h> by <stdint.h> in volk/volk_common.h, fixes configuration in macOS
2020-01-14 12:51:55 +01:00
Carles Fernandez
931d69b76e
Fix ARM NEON detection 2020-01-13 23:12:34 +01:00
Carles Fernandez
69e349d832
Fix guards 2020-01-13 03:12:19 +01:00
Carles Fernandez
24a2d6c5d9 Update README to reflect how to build on Raspberry Pi 2019-12-16 10:12:15 -03:00
Carles Fernandez
5f97d52998 CMake fixes
Remove Boost usage from lib, and fix it in apps to be used only if std::filesystem is not found.
Be more precise in specifying whether include directories are PUBLIC or PRIVATE.
Some whitespace tweaks
2019-12-15 12:43:07 -03:00
Carles Fernandez
80fbeb4fe5
Revert "cmake: Use standard way of getting python prefix"
This reverts commit f6311abc87.
2019-11-30 21:14:12 +01:00
Carles Fernandez
f6311abc87
cmake: Use standard way of getting python prefix 2019-11-30 20:48:13 +01:00
Carles Fernandez
0038853c52
Clean CMake files 2019-11-30 20:30:22 +01:00
Carles Fernandez
b552616b99
Find Python 3 with CMake < 3.12 2019-11-30 17:42:44 +01:00
Carles Fernandez
21d19ebd93
Fix typo 2019-11-30 14:19:25 +01:00
Carles Fernandez
51c8732ff1
Look for python3 in first place even if CMake < 3.12 2019-11-30 14:18:39 +01:00
Carles Fernandez
1d8024df98
Apply clang-format 2019-11-29 16:40:03 +01:00
Carles Fernandez
aa9adf3fd6
Replace deprecated exec_program by execute_process 2019-11-29 13:20:49 +01:00
Carles Fernandez
c88fffc5b2
Fix uninstall target 2019-11-29 13:02:02 +01:00
Carles Fernandez
625561a655
Remove deprecated cstdbool header 2019-11-25 22:47:31 +01:00
Carles Fernandez
bc7edede7c
Fixes for MSVC 2019-11-25 21:48:52 +01:00
Carles Fernandez
64a1fcafb2
Boost_ADDITIONAL_VERSIONS is deprecated 2019-11-24 21:20:37 +01:00
Carles Fernandez
17fd01ee3f
Use sha256 instead of sha1 for hash algorithm 2019-11-17 21:01:03 +01:00
Carles Fernandez
815a910619
Make use of ORC if available 2019-11-17 13:42:29 +01:00
Carles Fernandez
1a9e25aa76
Add __clang__ specific attributes 2019-11-16 12:25:39 +01:00
Carles Fernandez
5728730c2a
cmake: use sha1 instead of md5 for unique target name hash
See https://github.com/gnuradio/volk/issues/238
2019-11-16 11:50:41 +01:00
Carles Fernandez
c1a26e01ff
Fix building with Xcode
Now gnss-sdr can be built with Xcode (using the CMake flag -GXcode). Before this commit, this was only possible with volk_gnsssdr already installed.
Reason of failing was that Xcode does not like targets that have only object files. See https://gitlab.kitware.com/cmake/cmake/issues/17457
2019-11-07 17:55:00 +01:00
Carles Fernandez
8f12cbc466
Include Visual Studio 14 2019-11-04 21:09:11 +01:00
Carles Fernandez
75c2dcc929
Remove unused variable 2019-11-01 21:02:43 +01:00
Carles Fernandez
4816ae64f7
Add toolchain files for ARM processors 2019-11-01 19:29:28 +01:00
Carles Fernandez
62ace8d9e4
Move CMAKE_ASM_FLAGS to arm toolchain files 2019-11-01 11:17:52 +01:00
Carles Fernandez
d14111c85d
Improve license text wording
Fix for AppleClang compiler >= 11
2019-10-30 21:27:57 +01:00
Carles Fernandez
b1166de1a0
Introduce volk:gnsssdr::vector
The usual benefits of using objects as opposed to pointers (RAII) + the type information is manifest (no void* pointers)
The best of both worlds: automatic destruction, aligned memory
2019-10-26 22:24:42 +02:00
Carles Fernandez
054a20b5bf
Apply clang-format to the whole code tree 2019-10-11 11:57:33 +02:00
Carles Fernandez
0520d400b3 Apply clang-tidy 2019-09-11 22:31:34 +00:00
Carles Fernandez
d652903cb6
Apply formatting 2019-09-07 09:38:05 +02:00
Carles Fernandez
dac73c730a
Import exceptions module 2019-08-23 22:44:01 +02:00
Carles Fernandez
f5cf32a142
Add additional argument to volk_get_config_path 2019-08-23 22:43:01 +02:00
Carles Fernandez
79b7233da0
Install constants.h alongside other headers 2019-08-23 22:41:13 +02:00
Carles Fernandez
e676346b65
Add -mavx2 and -mfma to clang compiler 2019-08-23 22:32:06 +02:00
Carles Fernandez
91ccc8589e
Add NEON intrinsics 2019-08-23 22:29:30 +02:00
Carles Fernandez
11afe63ef3
Add toolchain for Raspberry Pi 2019-08-23 22:28:10 +02:00
Carles Fernandez
6dc32f6c72
Add tool to plot best kernel performance vs generic kernel 2019-08-23 22:26:45 +02:00
Carles Fernandez
95f688dcb0
Mark all constructors callable with one argument as explicit 2019-08-23 21:25:44 +02:00
Carles Fernandez
c4db5476fb Always have a space between // and comment 2019-08-19 10:49:37 +02:00
Carles Fernandez
9d0c00132d
Always have a space between // and comment 2019-08-19 01:29:04 +02:00
Carles Fernandez
e4c3ee7527
Remove redundant blank lines at the end of a code block 2019-08-17 15:29:31 +02:00
Carles Fernandez
c31d9dea40
Fix errors risen by include_what_you_use 2019-08-17 13:56:54 +02:00
Carles Fernandez
75c71afd30
Merge branch 'next' into release0011 2019-08-04 08:28:19 +02:00
Carles Fernandez
2e93dbe8dc
Make build Reproducible 2019-08-03 20:31:53 +02:00
Carles Fernandez
f349d7c29b
Bump version to 0.0.11 2019-07-27 13:31:12 +02:00
Carles Fernandez
a4d6800e22
Update copyright year
Applied on files changed since last release
clang-format applied
2019-07-26 12:38:20 +02:00
Carles Fernandez
09b6b2305e
Handle redefinition of Boost_VERSION variable in CMake 3.15
See Policy CMP0093 https://cmake.org/cmake/help/v3.15/policy/CMP0093.html#policy:CMP0093
CMake 3.15 policies enabled by default (see https://cmake.org/cmake/help/v3.15/manual/cmake-policies.7.html#manual:cmake-policies(7) )
2019-07-22 14:13:57 +02:00
Carles Fernandez
ca92ff0e44
Catch all exceptions 2019-07-14 00:18:51 +02:00
Carles Fernandez
2d894a8507
Catch exception when using std::experimental 2019-07-13 12:29:06 +02:00
Carles Fernandez
4adb05570a Fix typos detected by codespell 2019-07-09 11:52:53 +02:00
Carles Fernandez
c31236096d
Build volk_gnsssdr with C++20 with clang++ if available 2019-06-15 22:25:22 +02:00
Carles Fernandez
ec8f398e59
Set CMAKE_CXX_STANDARD to 20 when available 2019-06-15 10:55:49 +02:00
Carles Fernandez
c9822a435c
Allow volk-gnsssdr to be built with std::experimental::filesystem if found 2019-06-11 22:56:24 +02:00
Carles Fernandez
ca6b4b545b
Replace Boost::filesystem by std::filesystem if C++17 support is available 2019-06-10 21:41:13 +02:00
Carles Fernandez
94d9897cb5
Add CMake module for better detection and usage of std::filesystem in volk_gnsssdr 2019-06-09 19:25:04 +02:00
Carles Fernandez
30ee3dcb89
Build volk-gnssdr without Boost if std::filesystem is available 2019-06-09 02:33:17 +02:00
Carles Fernandez
edbe7b4840
Fix volk_gnsssdr_profile if config file does not exist 2019-06-03 01:30:39 +02:00
Carles Fernandez
fb350e788b
Search for system-wide volk_gnsssdr_config file 2019-05-29 15:56:12 +02:00
Carles Fernandez
7004606f00
Reuse random generator engine for speedup 2019-05-26 20:21:48 +02:00
Carles Fernandez
3157451d57
cmake: add back pre-"modern CMake targets" find variables 2019-05-26 10:43:36 +02:00
Carles Fernandez
e0da44f606
Fix detection of python mako if installed with Macports 2019-04-09 02:27:50 +02:00
Carles Fernandez
41036c1538
Fix kernel 2019-03-24 19:53:51 +01:00
Carles Fernandez
d8f1e4b437
Increase required accuracy in 32-bit rotator_dot_prod test results 2019-03-24 19:35:53 +01:00
Carles Fernandez
441ff637eb
Fix AVX implementation
Samples that are remanent from num_points / 16 were not adecuately integrated
2019-03-24 13:50:12 +01:00
Carles Fernandez
33403dedea Fix high_dynamics correlator 2019-03-21 21:10:56 +01:00
Carles Fernandez
b10aaafb86
Improve Python detection 2019-03-10 13:53:51 +01:00
Carles Fernandez
6a24b65d64
Fix for VS 2019-03-08 10:28:04 +01:00
Carles Fernandez
004dd4a38a Replace the deprecated branch_path() by parent_path() 2019-02-12 12:57:37 +01:00
Carles Fernandez
75bd492d96
Change CMake target names to more meaningful ones, reflecting the code tree 2019-02-10 18:34:28 +01:00
Carles Fernandez
f3eef2f513
Add modern CMake targets for volk_gnsssdr 2019-01-31 12:12:04 +01:00
Carles Fernandez
928c545c84
Do not overwrite CMAKE_ASM_FLAGS 2019-01-29 14:58:01 +01:00
Carles Fernandez
3d2f10dae7
Make sure that regexp are raw strings 2019-01-29 14:52:01 +01:00