Used SwitchToThread for YIELDING on AMD piledriver with Windows.
This commit is contained in:
		
							parent
							
								
									75acf96d94
								
							
						
					
					
						commit
						a789b77b75
					
				
							
								
								
									
										3
									
								
								common.h
								
								
								
								
							
							
						
						
									
										3
									
								
								common.h
								
								
								
								
							| 
						 | 
					@ -315,9 +315,10 @@ typedef int blasint;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef PILEDRIVER
 | 
					#ifdef PILEDRIVER
 | 
				
			||||||
 | 
					#ifndef YIELDING
 | 
				
			||||||
#define YIELDING        __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
 | 
					#define YIELDING        __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop;\n");
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef YIELDING
 | 
					#ifndef YIELDING
 | 
				
			||||||
#define YIELDING	sched_yield()
 | 
					#define YIELDING	sched_yield()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue