Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (16 loc) · 974 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 974 Bytes

Makefile Configuration of MShadow

MShadow is a template library, you only need to include mshadow to use it. So this folder is not used to build mshadow library file.

However, mshadow is a flexible library that allows you to compile with different configurations. For example, you can compile mshadow without CUDA, and specify your own choice of BLAS. There are different compile flags that you might need to set in your own configuration. This folder provides a Makefile script to help you do that.

Usage

  • Set the configurations via variables in your Makefile, see example in ../guide/config.mk
  • include mshadow.mk in your Makefile
  • mshadow.mk will give you compiler variables that you can include when compiling
    • Add MSHADOW_CFLAGS to the compile flags
    • Add MSHADOW_LDFLAGS to the linker flags
    • Add MSHADOW_NVCCFLAGS to the nvcc compile flags
  • For example Makefile, see ../guide/Makefile