def compiler_opts(lib):
    """Create compiler options

    Paramters
    ---------
    lib : Str
        The path of the hardware shared library.

    Returns
    -------
    opts : Dict
        The compiler options.
    """
    opts = {
        "lib_path": lib,
        "profiler_enable": True,
        "profiler_cycle_counter_id": 0,
    }
    return opts