Add taskloop test in Nanos6 and NODES
This commit is contained in:
		
							parent
							
								
									a3ffb2443a
								
							
						
					
					
						commit
						b1ee2e7143
					
				| @ -1,4 +1,4 @@ | ||||
| # Copyright (c) 2022 Barcelona Supercomputing Center (BSC) | ||||
| # Copyright (c) 2022-2023 Barcelona Supercomputing Center (BSC) | ||||
| # SPDX-License-Identifier: GPL-3.0-or-later | ||||
| 
 | ||||
| include(CheckOmpSs2Compiler) | ||||
| @ -46,6 +46,7 @@ nanos6_rt_test(several-tasks.c) | ||||
| nanos6_rt_test(sched-add.c) | ||||
| nanos6_rt_test(if0.c) | ||||
| #nanos6_rt_test(taskfor.c) #Taskfor no longer supported | ||||
| nanos6_rt_test(taskloop.c) | ||||
| nanos6_rt_test(spawn-task.c) | ||||
| nanos6_rt_test(spawn-task-external.c) | ||||
| nanos6_rt_test(spawn-task-external-bad.c SHOULD_FAIL | ||||
|  | ||||
							
								
								
									
										16
									
								
								test/rt/nanos6/taskloop.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								test/rt/nanos6/taskloop.c
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| /* Copyright (c) 2023 Barcelona Supercomputing Center (BSC)
 | ||||
|  * SPDX-License-Identifier: GPL-3.0-or-later */ | ||||
| 
 | ||||
| #include "compat.h" | ||||
| 
 | ||||
| int | ||||
| main(void) | ||||
| { | ||||
| 	#pragma oss taskloop label("taskloop") | ||||
| 	for (int i = 0; i < 100; i++) { | ||||
| 		sleep_us(100); | ||||
| 	} | ||||
| 
 | ||||
| 	#pragma oss taskwait | ||||
| 	return 0; | ||||
| } | ||||
| @ -43,4 +43,5 @@ nodes_rt_test(../nanos6/nested-task.c NAME nested-task SORT) | ||||
| nodes_rt_test(../nanos6/several-tasks.c NAME several-tasks SORT) | ||||
| nodes_rt_test(../nanos6/if0.c NAME if0 SORT) | ||||
| nodes_rt_test(../nanos6/sched-add.c NAME sched-add SORT) | ||||
| nodes_rt_test(../nanos6/taskloop.c NAME taskloop SORT) | ||||
| nodes_rt_test(taskiter.c SORT) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user