mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
The maintenance of the conformance tests is moving to Github. This commit contains all the changes that have been done in Gitlab since the first public release of the conformance tests. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
51 lines
1.9 KiB
Makefile
51 lines
1.9 KiB
Makefile
ifdef BUILD_WITH_ATF
|
|
ATF = -framework ATF
|
|
USE_ATF = -DUSE_ATF
|
|
endif
|
|
|
|
# We do not use dependencies in this Makefile
|
|
|
|
SRCFILES = Sleep.c test_conversions.c ../../test_common/harness/mt19937.c ../../test_common/harness/ThreadPool.c ../../test_common/harness/rounding_mode.c
|
|
|
|
CC = cc
|
|
|
|
CFLAGS = -g -std=c99 -Wall -Wshorten-64-to-32 $(COMPILERFLAGS) \
|
|
${RC_CFLAGS} ${USE_ATF}
|
|
|
|
INCLUDES = -I../../test_common/harness \
|
|
${RC_CFLAGS} ${ATF}
|
|
|
|
LIBRARIES = -framework OpenCL -framework CoreFoundation -framework IOKit
|
|
|
|
release:
|
|
echo "Build Release"
|
|
$(CC) -c basic_test_conversions.c -Os $(CFLAGS) -o basic_test_conversions.o
|
|
$(CC) $(SRCFILES) -Os $(CFLAGS) basic_test_conversions.o -o test_conversions $(INCLUDES) $(LIBRARIES)
|
|
|
|
debug:
|
|
echo "Build Debug"
|
|
$(CC) -c basic_test_conversions.c -O0 $(CFLAGS) -o basic_test_conversions.o
|
|
$(CC) test_conversions.c -c -O0 -g $(CFLAGS) $(INCLUDES) -o test_conversions.o
|
|
$(CC) Sleep.c -c -O0 -g $(CFLAGS) $(INCLUDES) -o Sleep.o
|
|
$(CC) ../../test_common/harness/mt19937.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o mt19937.o
|
|
$(CC) ../../test_common/harness/ThreadPool.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o ThreadPool.o
|
|
$(CC) ../../test_common/harness/rounding_mode.c -c -O0 -g $(INCLUDES) $(CFLAGS) -o rounding_mode.o
|
|
$(CC) *.o -g -O0 -o test_conversions_debug $(LIBRARIES) -arch i386 -arch x86_64
|
|
|
|
clean:
|
|
rm -f test_conversions
|
|
rm -f *.o
|
|
rm -f test_conversions_debug
|
|
|
|
test: release
|
|
arch -i386 ./test_conversions -c > cpu.out &
|
|
arch -i386 ./test_conversions -g > gpu.out &
|
|
echo "Testing 32-bit mode conversions for CPU and GPU, which takes a day or three. Results may be found in cpu.out and gpu.out\n"
|
|
|
|
test64: release
|
|
arch -x86_64 ./test_conversions_64 -c > cpu64.out &
|
|
arch -x86_64 ./test_conversions_64 -g > gpu64.out &
|
|
echo "Testing 64-bit mode conversions for CPU and GPU, which takes a day or three. Results may be found in cpu64.out and gpu64.out\n"
|
|
|
|
all: release
|