Skip to content

warning when deploying in Intel Arria 10 soc #1

Open
@mohand150

Description

@mohand150

hello everyone, when deploying the object recognition application on the intel Arria 10 soc card,
I had to create the bitstream file for my card with the offline compiler, and then you did not include the make I use a make that I found in the intels examples.
when running the application on the map I get warnings about data alignment transfer from the host part to the FPGA part.
capture d ecran_2019-02-18_15-42-33
I saw in some forum that I can use the function posix_memalign, and looking in the project folders, I found the data alignment function of the host part:
`//////////////////////////////////////////
// Host allocation functions for alignment
//////////////////////////////////////////
// This is the minimum alignment requirement to ensure DMA can be used.
const unsigned AOCL_ALIGNMENT = 64;

#ifdef _WIN32 // Windows
void *alignedMalloc(size_t size) {
return _aligned_malloc (size, AOCL_ALIGNMENT);
}
void alignedFree(void * ptr) {
_aligned_free(ptr);
}
#else // Linux
void *alignedMalloc(size_t size) {
void *result = NULL;
int rc;
rc = posix_memalign (&result, AOCL_ALIGNMENT, size);
return rc;
}
void alignedFree(void * ptr) {
free (ptr);
}
#endif
`
but this function is not used in the main()
so, how can I remove these warning?
thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions