The rdma-core driver.h include is no longer installed:
 56dd87acd2
So ibv_read_sysfs_file() is not defined. As the symbols is still
distributed, we simply add the missing prototype manually.
Similarly, the gaspi_get_system_mem() function is not available from the
gaspi public headers, so we define it in the max_mem.c test.
Fixes: rarias/bscpkgs#7
Reviewed-by: Aleix Boné <abonerib@bsc.es>
Tested-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
		
	
			
		
			
				
	
	
		
			11 lines
		
	
	
		
			380 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			380 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/tests/tests/segments/max_mem.c	2025-09-12 13:30:53.449353591 +0200
 | |
| +++ b/tests/tests/segments/max_mem.c	2025-09-12 13:33:49.750352401 +0200
 | |
| @@ -1,5 +1,7 @@
 | |
|  #include <test_utils.h>
 | |
|  
 | |
| +gaspi_size_t gaspi_get_system_mem (void);
 | |
| +
 | |
|  /* Test allocates 45% of system memory and creates a segment that
 | |
|     large or if several ranks per node exist, divided among that
 | |
|     number */
 |