sbu-fsl / kernel-ml Goto Github PK
View Code? Open in Web Editor NEWMachine Learning Framework for Operating Systems - Brings ML to Linux kernel
License: Apache License 2.0
Machine Learning Framework for Operating Systems - Brings ML to Linux kernel
License: Apache License 2.0
I'm sorry to bother you. However, I encountered the following problem while compiling my project into the kernel. Could you please advise on how to solve it? I'm using Ubuntu 18.04 as my operating system and GCC version 7.5.
MODPOST vmlinux.o
block/mq-adios.o: In function 'dd_init_queue':
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:493: undefined reference to 'build_linear_regression'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:494: undefined reference to 'io_scheduler_linear_check_correction'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:496: undefined reference to 'set_random_matrix'
block/mq-adios.o: In function '__dd_dispatch_request':
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:404: undefined reference to 'io_scheduler_linear_evaluate'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:394: undefined reference to 'io_scheduler_linear_evaluate'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:384: undefined reference to 'io_scheduler_linear_evaluate'
Makefile:1022: recipe for target 'vmlinux' failed.
This error message is indicating that there are undefined references to several functions in the mq-adios.c file, including "build_linear_regression", "io_scheduler_linear_check_correction", "set_random_matrix", and "io_scheduler_linear_evaluate". These errors occurred during the compilation of "vmlinux" and resulted in the failure of the make command.
Dear İbrahim Ümit Akgün,
I'm sorry to bother you. I am writing to bring to your attention a bug that I encountered while reviewing the code in mq-adios.c in the kernel-ml-linux repository.
Upon inspecting the code at line 495 of mq-adios.c, I noticed the following snippet:
io_sched_linear = build_linear_regression(0.03, 10, 0.99, 2);
io_sched_linear->check_correctness = io_scheduler_linear_check_correction;
set_random_matrix(io_sched_linear->w, modula);
The variable io_sched_linear is of type struct linear_regression, as defined in linear_regression.h. However, it appears that there is no member named w in the linear_regression structure. This inconsistency has resulted in compilation errors.
Here is the relevant definition of the linear_regression structure:
typedef struct linear_regression {
int batch_size;
sgd_optimizer *sgd;
loss *loss;
layers *layer_list;
bool (*check_correctness)(val result, val prediction);
model_data data;
model_multithreading multithreading;
model_state state;
} linear_regression;
Could you please look into this issue and provide a fix? It seems that there may be a discrepancy between the code in mq-adios.c and the definition of the linear_regression structure.
Thank you for your attention. I appreciate your efforts in maintaining the kernel-ml-linux repository.
Best regards,
I'm sorry to bother you,I would like to inquire about the presence of any header files at this specific path(-I/home/umit/research/kernel-ml/kml/include,KBUILD_CFLAGS += -I/home/kml/include).
I find the paths separately in these tow files(kernel-ml-linux\block\Makefile, kernel-ml-linux\mm\Makefile)
Are the headers files included as part of this open-source project, or are they solely present on your PC?I am currently unable to compile successfully, and I suspect the issue is related to this header file path.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.