Browse Source

Drop unused structure

Samuel Thibault 4 years ago
parent
commit
1f807ed86b
2 changed files with 0 additions and 23 deletions
  1. 0 12
      include/starpu_fpga.h
  2. 0 11
      src/drivers/max/driver_fpga.c

+ 0 - 12
include/starpu_fpga.h

@@ -40,18 +40,6 @@ struct starpu_fpga_data_trans
         float time;
 };
 
-struct starpu_fpga_device_properties
-{
-        int totalGlobalMem;
-        int concurrentKernels;
-        char *name;
-};
-
-/**
-   get device properties
- */
-int starpu_fpga_get_device_properties(struct starpu_fpga_device_properties *properties, unsigned devid);
-
 void starpu_fpga_report_configuration(void);
 
 /**

+ 0 - 11
src/drivers/max/driver_fpga.c

@@ -45,7 +45,6 @@
 //#define STARPU_MAXFPGADEVS 4
 /* the number of FPGA devices */
 static unsigned  nfpgafpgas = -1;
-static struct starpu_fpga_device_properties props[STARPU_MAXFPGADEVS];
 static size_t global_mem[STARPU_MAXFPGADEVS] = { 128ULL*1024*1024*1024 };
 
 static void _starpu_fpga_limit_global_mem(unsigned );
@@ -84,15 +83,6 @@ int fpga_allocate_memory(fpga_mem *ptr, size_t size)
 }
 #endif
 
-int starpu_fpga_get_device_properties(struct starpu_fpga_device_properties *props, unsigned devid)
-{
-	//TODO
-        props->totalGlobalMem=1*1024*1024;
-        props->concurrentKernels=4;
-        props->name="Fpga_Props_Name";
-        return 0;
-}
-
 void _starpu_fpga_discover_devices (struct _starpu_machine_config *config)
 {
 	//TODO: This is statically assigned, in the next round of integration
@@ -131,7 +121,6 @@ static void init_device_context(unsigned devid)
 	//TODO: starpu_fpga_set_device
 	starpu_fpga_set_device(devid);
 
-	starpu_fpga_get_device_properties(&props[devid], devid);
 	//TODO: Do we need the streams? I think no
 	//cures = starpu_fpgaStreamCreate(&in_transfer_streams[devid]);
 	//cures = starpu_fpgaStreamCreate(&out_transfer_streams[devid]);