- Jan 03, 2013
-
-
Brad King authored
In commit bf7f0ddc (Fix KWSys FundamentalType for Universal Binaries, 2009-11-20) we repurposed CMake variables "KWSYS_SIZEOF_${type}" and dropped use of them from configured headers. However, use of one was accidentally left in "IOStream.hxx.in" to record whether the compiler supports 'long long'. Replace it with a better test. Without this, "@KWSYS_SIZEOF_LONG_LONG@" is replaced with "TRUE" which the preprocessor may evaluate as "0" or "1" depending on whether a "TRUE" macro is defined. Change-Id: I8d3e1d3fc5b80ed440dbb8cebd6231068dfbd491
-
Brad King authored
* changes: SystemInformation: use /proc/cpuinfo only when present SystemInformation: determine CPU type on HP-UX SystemInformation: count CPUs on HP-UX SystemInformation: query memory size, CPU count, and CPU speed on BSD
-
Brad King authored
-
Rolf Eike Beer authored
The CPU may have a TSC but reading it may fail, in which case we now always fall back to reading the value from the registry. This is especially true on Windows64 where we do not have the assembler instructions at all. Change-Id: I5b1aafac6cd8df57ed8c1ac3bafcc8e092e3d4fb
-
- Jan 02, 2013
-
-
Brad King authored
Remove logic that skips all slashes before the first ':'. This does not even make sense for Windows drive letter handling. While at it, remove no-op logic that appears to try to remove trailing slashes. Change-Id: Ib8ed75324ee0149c7899e52ec4a5bf2d0a19d17a
-
Rolf Eike Beer authored
Try to open /proc/cpuinfo only on platforms where it's presence is expected, namely Linux and Cygwin. Otherwise try sysconf(_SC_NPROCESSORS_ONLN) as last resort to count processors. Also account for the slightly different name on IRIX. Change-Id: I89eb5e198a6b3a33b581b70d2213096cbac8ca7c
-
Rolf Eike Beer authored
Change-Id: I3ce3fbaa56d8777a21f5d9bad903eeb15a344a5e
-
Rolf Eike Beer authored
Change-Id: Ib480a8295d817f84219a747744b84b148a3d8d9a
-
Rolf Eike Beer authored
Change-Id: I9d9ed23708dbc1388a04f17cbb9bb88ee6feae30
-
Change-Id: Ib6b14c8c44129c50187d0273c1f308abe17dff10
-
Change-Id: I3507299e7145268aef9e35c63454dd5f67fcf593
-
Brad King authored
-
Change-Id: I359bfaf0f7b7e55eb1cc1dce5ce02be0aa82a5ad
-
Brad King authored
-
-do not always set NumberOfLogicalCPU to 1, it doesn't make any sense to have this number smaller than NumberOfPhysicalCPU. Instead keep both numbers the same and set LogicalProcessorsPerPhysical to 1. -replace '/1024*8192/1024' with '/128' Change-Id: Idf7d1983875040ceacae5547da408179ca10f1c3
-
Brad King authored
-
Change-Id: Ib9ef970940e4bc10d4cfba52d803508095706bc2
-
- Dec 21, 2012
-
-
The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian and __AARCH64EL__ little endian. Only little endian tested, no big endian toolchain exists yet. Change-Id: Ieded9bdb0557ad1e1f3a5b08fbe210df23079e5e Signed-off-by:
Riku Voipio <riku.voipio@linaro.org>
-
- Dec 19, 2012
-
-
Change-Id: I11673e92c9cab8fe9b7521ad4e0f6120a73abe8c
-
E.g. Linux ARM platforms write "CPU architecture" instead of "cpu family". Change-Id: I8833f6194a8878750b71aaa65bc52fe5eb057a03
-
GetExtendedProcessorName() may sometimes return "Unknown family" when we could return something more meaningful. Some systems (e.g. PA-RISC on Linux) export a "cpu" value in /proc/cpuinfo that has a beautified processor name in it (e.g. "PA8600 (PCX-W+)"). If we have not found something nice but this field is present use that information. Change-Id: I72561bdcba12f3f43d86f96bf3ebfae36ea22421
-
Change-Id: I729237c700e58eca9ea4fdc563f00208cfc81cff
-
If the given key (e.g. "cpu") is matched at the beginning of any line the value was returned regardless if that line would be the correct match (e.g. "cpu family" is not the correct line). Make sure between the key and the colon are only spaces and tabs. Change-Id: I8955add3635a0afb73a9f07f7a0bcf600b7c7015
-
Non-x86 architectures (namely PA-RISC) may not have the "cache size" line, but others. Search for all and sum up their results. Change-Id: Ie8e1c52e2b8be69b0b919bb029c1db95c04a9309
-
Change-Id: Ib753ad6171b0f83f6ad505a904c7d3124d734ee1
-
- Dec 14, 2012
-
-
Brad King authored
The Registry class is not used by any other part of KWSys or by any of the major dependent projects (CMake, ITK, VTK, ParaView, etc.). Remove it from KWSys proper. It can be kept in a specific dependent if necessary. Change-Id: I82c0ae2f6a354e9fc5b267faf8fbbeaf9e99a75e
-
- Nov 29, 2012
-
-
Sean McBride authored
Change-Id: Iaa1cd4ff7ae9a2b4efab0094544af0789c376c0a
-
Some compilers, notably Clang, will warn at compile time (or runtime with debug flags) if they detect a null dereference. Try to outsmart them by dereferencing an address a little larger than NULL. Change-Id: I53c6512f814ad3e8977c076904f0415e8aaaaea5
-
- Nov 14, 2012
-
-
Brad King authored
We no longer support Windows 98. Remove Win9x-specific code and supporting infrastructure. This simplifies the implementation in several places. Change-Id: Ic3062a81e5880b649feeedf397bf846400f12526
-
- Nov 08, 2012
-
-
Brad King authored
From "man getifaddrs": "This means ifa_addr and other fields can actually be NULL if the interface has no address..." Reported-by:
Kornel Benko <kornel@lyx.org> Change-Id: I9d9ad3ae9fb50cbcab46fa8c06b270e4c56c288e
-
- Nov 05, 2012
-
-
Brad King authored
In order to compute FQDN portably in the future we will need an incremental series of try_compile tests to build up the list of available headers and supported APIs. For now implement it only on platforms where we have already hard-coded preprocessor tests for the headers. Change-Id: Ie1b2ad30ef3c2d5939071c7cbd32826be64d7e29
-
Brad King authored
Commit 857bda17 (SystemInformation: Report more information, 2012-05-29) attempted to refactor the internal CallSwVers helper to avoid duplicate code but introduced a regression in output parsing. Run sw_vers using our RunProcess helper rather than popen and restore the original output processing approach. Change-Id: I550af5813dcad5beaec86c7c5fa1f00bcc9070b6
-
Brad King authored
The backtrace API was added in LSB 4.1 but does not exist in 4.0. Change-Id: Iae84de74d83135c53f4c5fd7bd16d9764d3c161b
-
- Nov 02, 2012
-
-
Brad King authored
Replace accidental use of kwsys_stl:: with kwsys_ios:: to reference string streams. The former is the namespace for STL, the latter for streams. Change-Id: I8c18a49c34633a4a3760d6f31192ff82ce4ce537
-
- Oct 16, 2012
-
-
Brad King authored
The LoadLines filename overload is used only on Linux. Change-Id: I71b18c36aa033471aeeecba4cc002f293577cb8a
-
- Oct 12, 2012
-
-
Brad King authored
Drop unused helper GetFieldFromCommand. Define helpers LoadLines NameValue GetFieldFromFile GetFieldsFromFile GetFieldsFromCommand StacktraceSignalHandler only on platforms where they are used. Hide all helpers in an anonymous namespace so they are not visible outside the SystemInformation translation unit. Change-Id: I514881a8f253d72e90a0fb8bf1a6d7d9bc7e01c5
-
Brad King authored
Switch order of helper function definitions to avoid referencing names before they are declared. Change-Id: I25243b2042163f920f056b71941c88e6cfabac16
-
- Oct 10, 2012
-
-
Brad King authored
-
- Oct 09, 2012
-
-
Burlen Loring authored
Add methods to report host memory total, host memory available, process memory available, host memory used, and process memory used. In this context memory is unavailable if there are resource limits in place that would prevent its use. Such resource limits assumed to be applied on a per host basis both to cooperatively operating process groups, such as mpi programms running in parallel, and to individual processes. When reporting host memory available consult an application specified environment variable. When reporting process memory available consult unix resource rlimits and an application specified environment variable. The environmant variables provide a means of communicating resource limits that are being applied in a non-standard way. Change-Id: Ifb3b0fdaab8db0ab87140fa2dcafad3c51e2d874
-
- Oct 06, 2012
-