Commit c59b704a authored by Titouan Soulard's avatar Titouan Soulard

Move all header files to a single include directory

parent 76a885db
out/*
**/*.o
**/*.lo
libtrx/include/trx_driver.h
include/amarisoft/*
CFLAGS = -Wall -O3
INCLUDE_FLAGS = -Icommon/include -Ilibcapulet/include -Ilibtrx/include
INCLUDE_FLAGS = -I./include
LIB_FLAGS =-lc -libverbs
all: out/libcapulet.so out/libtrx_rdma.so out/rdma_standalone
......
......@@ -31,8 +31,11 @@ make install
rdma_standalone -c 192.168.16.10 < Makefile
```
The client should immediately display the content of `README.md`. The content of the `Makefile`
got written to the server, but currently not displayed because the program is mono-threaded.
## TRX driver
In order to compile the TRX driver, you will need to provide your own `trx_driver.h` file from Amarisoft.
Copy the file in `libtrx/include` and run `make install`, the library driver will be located at `out/libtrx_rdma.so`.
Copy the file in `include/amarisoft` and run `make`, the library driver will be located at `out/libtrx_rdma.so`.
#include "common_hashtable.h"
#include "common/hashtable.h"
// Non-cryptographic hashing algorithm optimized for strings
//
......
......@@ -5,9 +5,9 @@
#include <time.h>
#include <unistd.h>
#include "net_udp.h"
#include "rdma_ib.h"
#include "common_hashtable.h"
#include "common/hashtable.h"
#include "libcapulet/net_udp.h"
#include "libcapulet/rdma_ib.h"
int main(int argc, char *argv[]) {
struct CapuletRdmaIbContext rdma_ctx;
......
......@@ -12,7 +12,7 @@
#include <infiniband/verbs.h>
#include "common_hashtable.h"
#include "common/hashtable.h"
#define CAP_QP_INFO_PTYPE 0x01
#define CAP_MR_QUERY_PTYPE 0x10
......
......@@ -6,7 +6,7 @@
#include <infiniband/verbs.h>
#include "net_udp.h"
#include "libcapulet/net_udp.h"
struct CapuletRdmaIbContext {
struct ibv_context *ib_ctx;
......
......@@ -4,10 +4,10 @@
#include <stdint.h>
#include <stdio.h>
#include "common_hashtable.h"
#include "rdma_ib.h"
#include "trx_driver.h"
#include "net_udp.h"
#include "amarisoft/trx_driver.h"
#include "common/hashtable.h"
#include "libcapulet/rdma_ib.h"
#include "libcapulet/net_udp.h"
struct SDRMetadata {
uint8_t version;
......
#include "net_udp.h"
#include "libcapulet/net_udp.h"
struct CapuletNetUdpContext *capulet_net_udp_initialize() {
struct CapuletNetUdpContext *ctx;
......
#include "include/rdma_ib.h"
#include "libcapulet/rdma_ib.h"
bool capulet_rdma_ib_initialize_device(struct CapuletRdmaIbContext *ctx, const char *device_name) {
struct ibv_device **dev_list;
......
#include "trx_rdma.h"
#include "libtrx/trx_rdma.h"
static int trx_rdma_start(TRXState *s, const TRXDriverParams *p) {
struct SDRContext *sdr_context;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment