-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Hirsch <scivision@users.noreply.github.com>
- Loading branch information
Showing
4 changed files
with
36 additions
and
1 deletion.
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
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,9 @@ | ||
// using macros from https://stackoverflow.com/a/66249936/7703794 (CC BY-SA 3.0) | ||
|
||
int main(void) { | ||
#if defined(__x86_64__) || defined(_M_X64) || defined(i386) || defined(__i386__) || defined(__i386) || defined(_M_IX86) | ||
return 0; | ||
#else | ||
return 1; | ||
#endif | ||
} |
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
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,6 +1,18 @@ | ||
foreach(t api_version) | ||
foreach(t api_version backends bind | ||
bitmap bitmap_compare_inclusion bitmap_first_last_weight bitmap_singlify bitmap_string | ||
distances get_area_memlocation get_cache_covering_cpuset get_closest_objs get_largest_objs_inside_cpuset | ||
get_last_cpu_location get_next_obj_covering_cpuset get_obj_below_array_by_type get_obj_covering_cpuset | ||
get_obj_inside_cpuset get_obj_with_same_locality get_shared_cache_covering_obj | ||
groups insert_misc iodevs is_thissystem list_components obj_infos object_userdata pci_backend synthetic | ||
topology_abi topology_allow topology_diff topology_dup topology_restrict type_depth type_sscanf | ||
) | ||
add_executable(hwloc_${t} hwloc_${t}.c) | ||
target_link_libraries(hwloc_${t} PRIVATE hwloc::hwloc) | ||
|
||
add_test(NAME ${t} COMMAND hwloc_${t}) | ||
set_tests_properties(${t} PROPERTIES TIMEOUT 10) | ||
endforeach() | ||
|
||
target_compile_definitions(hwloc_type_sscanf PRIVATE XMLTESTDIR=\"${CMAKE_CURRENT_SOURCE_DIR}/xml/\") | ||
|
||
set_tests_properties(get_obj_with_same_locality PROPERTIES ENVIRONMENT HWLOC_TOP_SRCDIR=${TOPDIR}) |