mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-11-04 10:38:10 +08:00 
			
		
		
		
	* Start the communications branch using MPI * Add ops and primitives * Add python bindings for distributed
		
			
				
	
	
		
			13 lines
		
	
	
		
			396 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			396 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
function(build_example SRCFILE)
 | 
						|
  get_filename_component(src_name ${SRCFILE} NAME_WE)
 | 
						|
  set(target "${src_name}")
 | 
						|
  add_executable(${target} ${SRCFILE})
 | 
						|
  target_link_libraries(${target} PRIVATE mlx)
 | 
						|
endfunction(build_example)
 | 
						|
 | 
						|
build_example(tutorial.cpp)
 | 
						|
build_example(linear_regression.cpp)
 | 
						|
build_example(logistic_regression.cpp)
 | 
						|
build_example(metal_capture.cpp)
 | 
						|
build_example(distributed.cpp)
 |