15,911,317 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by prother123 (Top 19 by date)
prother123
17-Oct-21 9:00am
View
Thank you for your reply. So what do you suggest as solution
prother123
14-Oct-21 12:27pm
View
can you please suggest a debugger ??
prother123
17-Sep-21 12:31pm
View
Thank you for reply, so how to modify my
code to include your subcode in??
prother123
17-Sep-21 10:50am
View
okay, lets see your suggestion on the code
prother123
17-Sep-21 10:34am
View
The outputs are different because the generated random numbers are different in the two environments. So, generating the same random numbers should give me the same outputs.
prother123
16-Sep-21 6:33am
View
Thank you for reply.
I just add the host code.
prother123
15-Sep-21 9:25am
View
thank you very much, this solution works for me
prother123
15-Sep-21 8:07am
View
Could you please add the proper option to my Makefile that I just attached
prother123
15-Sep-21 8:04am
View
This is my Makefile:
ifeq ($(VERBOSE),1)
ECHO :=
else
ECHO := @
endif
# Where is the Intel(R) FPGA SDK for OpenCL(TM) software?
ifeq ($(wildcard $(INTELFPGAOCLSDKROOT)),)
$(error Set INTELFPGAOCLSDKROOT to the root directory of the Intel(R) FPGA SDK for OpenCL(TM) software installation)
endif
ifeq ($(wildcard $(INTELFPGAOCLSDKROOT)/host/include/CL/opencl.h),)
$(error Set INTELFPGAOCLSDKROOT to the root directory of the Intel(R) FPGA SDK for OpenCL(TM) software installation.)
endif
# OpenCL compile and link flags.
AOCL_COMPILE_CONFIG := $(shell aocl compile-config )
AOCL_LINK_CONFIG := $(shell aocl link-config )
# Compilation flags
ifeq ($(DEBUG),1)
CXXFLAGS += -g
else
CXXFLAGS += -O2
endif
# Compiler
CXX := g++
# Target
TARGET := host
TARGET_DIR := bin
# Directories
INC_DIRS := ../common/inc
LIB_DIRS :=
# Files
INCS := $(wildcard )
SRCS := $(wildcard host/src/*.cpp ../common/src/AOCLUtils/*.cpp)
LIBS := rt pthread
# Make it all!
all : $(TARGET_DIR)/$(TARGET)
# Host executable target.
$(TARGET_DIR)/$(TARGET) : Makefile $(SRCS) $(INCS) $(TARGET_DIR)
$(ECHO)$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC $(foreach D,$(INC_DIRS),-I$D) \
$(AOCL_COMPILE_CONFIG) $(SRCS) $(AOCL_LINK_CONFIG) \
$(foreach D,$(LIB_DIRS),-L$D) \
$(foreach L,$(LIBS),-l$L) \
-o $(TARGET_DIR)/$(TARGET)
$(TARGET_DIR) :
$(ECHO)mkdir $(TARGET_DIR)
# Standard make targets
clean :
$(ECHO)rm -f $(TARGET_DIR)/$(TARGET)
.PHONY : all clean
prother123
15-Sep-21 8:00am
View
thank you for reply. But I am not sure what to add to my Makefile
prother123
6-Sep-21 8:41am
View
I just add my code. Please check
prother123
6-Sep-21 8:28am
View
Okay, so are you able to help me if I post my source code ?
prother123
6-Sep-21 8:27am
View
How to fix the error even if I don't know that error ??
prother123
6-Sep-21 8:26am
View
What do you mean please
prother123
29-Aug-21 12:42pm
View
Thank you for reply. So what should I update my code with? Please write the code after modification.
prother123
28-Aug-21 9:51am
View
I did but No good websites
prother123
27-Aug-21 13:04pm
View
the array_dist is sorted correctly, but the indices are not sorted correctly
prother123
27-Aug-21 13:03pm
View
the index_arr has values from 0 ....4343
prother123
27-Aug-21 13:02pm
View
Actually, it returns the indices in wrong way.
Show More