13.07.2015 Views

Intel(R) - Computational and Systems Biology at MIT

Intel(R) - Computational and Systems Biology at MIT

Intel(R) - Computational and Systems Biology at MIT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6 <strong>Intel</strong>® M<strong>at</strong>h Kernel Library User’s Guide1. Include the i_malloc.h header file in your code.(The header file contains all declar<strong>at</strong>ions required for an applic<strong>at</strong>ion developer toreplace the memory alloc<strong>at</strong>ion functions. This header file also describes how memoryalloc<strong>at</strong>ion can be replaced in those <strong>Intel</strong> libraries th<strong>at</strong> support this fe<strong>at</strong>ure.)2. Redefine values of pointers i_malloc, i_free, i_calloc, i_realloc prior to thefirst call to MKL functions:Example 6-4 Redefining memory functions#include "i_malloc.h". . .i_malloc = my_malloc;i_calloc = my_calloc;i_realloc = my_realloc;i_free = my_free;. . .// Now you may call <strong>Intel</strong> MKL functions6-18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!