fixed driver unrsolved dependencies

This commit is contained in:
Blaise Tine 2020-08-27 06:41:40 -04:00
parent c7cdb09822
commit e54425404e
6 changed files with 27 additions and 3 deletions

View file

@ -65,7 +65,7 @@ Install Verilator
Install Vortex
$ git clone --recursive https://github.gatech.edu/casl/Vortex.git
$ git clone --recursive https://github.com/vortexgpgpu/vortex.git
$ cd Vortex
$ make

View file

@ -91,7 +91,7 @@ extern int vx_upload_kernel_file(vx_device_h device, const char* filename) {
return err;
}
extern int vx_get_perf(vx_device_h device, uint64_t* cycles, uint64_t* instrs) {
extern int vx_get_perf(vx_device_h device, size_t* cycles, size_t* instrs) {
int ret = 0;
unsigned value;

View file

@ -72,7 +72,7 @@ int vx_upload_kernel_bytes(vx_device_h device, const void* content, size_t size)
int vx_upload_kernel_file(vx_device_h device, const char* filename);
// get performance counters
int vx_get_perf(vx_device_h device, uint64_t* cycles, uint64_t* instrs);
int vx_get_perf(vx_device_h device, size_t* cycles, size_t* instrs);
#ifdef __cplusplus
}

View file

@ -323,3 +323,11 @@ extern int vx_ready_wait(vx_device_h hdevice, long long timeout) {
return device->wait(timeout);
}
extern int vx_csr_set(vx_device_h /*hdevice*/, int /*core*/, int /*address*/, unsigned /*value*/) {
return -1;
}
extern int vx_csr_get(vx_device_h /*hdevice*/, int /*core*/, int /*address*/, unsigned* /*value*/) {
return -1;
}

View file

@ -357,3 +357,11 @@ extern int vx_ready_wait(vx_device_h hdevice, long long timeout) {
return device->wait(timeout);
}
extern int vx_csr_set(vx_device_h /*hdevice*/, int /*core*/, int /*address*/, unsigned /*value*/) {
return -1;
}
extern int vx_csr_get(vx_device_h /*hdevice*/, int /*core*/, int /*address*/, unsigned* /*value*/) {
return -1;
}

View file

@ -47,3 +47,11 @@ extern int vx_start(vx_device_h /*hdevice*/) {
extern int vx_ready_wait(vx_device_h /*hdevice*/, long long /*timeout*/) {
return -1;
}
extern int vx_csr_set(vx_device_h /*hdevice*/, int /*core*/, int /*address*/, unsigned /*value*/) {
return -1;
}
extern int vx_csr_get(vx_device_h /*hdevice*/, int /*core*/, int /*address*/, unsigned* /*value*/) {
return -1;
}